From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnout Vandecappelle Date: Tue, 27 Oct 2015 20:06:24 +0100 Subject: [Buildroot] [PATCH] core: add a 'make version' rule In-Reply-To: <1445956167-11122-1-git-send-email-yann.morin.1998@free.fr> References: <1445956167-11122-1-git-send-email-yann.morin.1998@free.fr> Message-ID: <562FCB30.8040604@mind.be> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 27-10-15 15:29, Yann E. MORIN wrote: > We often ask people for the version they are using when they ask for > help (either on the list or on IRC). Some of them do not even know which > version they are using. > > Add a make rule to dump the full version string. Anything wrong with 'make print-version'? :-) I already marked it as rejected. Regards, Arnout > > Signed-off-by: "Yann E. MORIN" > Cc: Peter Korsgaard > --- > Makefile | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 853d185..3cf0c0c 100644 > --- a/Makefile > +++ b/Makefile > @@ -88,10 +88,14 @@ DATE := $(shell date +%Y%m%d) > # Need to export it, so it can be got from environment in children (eg. mconf) > export BR2_VERSION_FULL := $(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setlocalversion) > > +.PHONY: version > +version: > + @echo $(BR2_VERSION_FULL) > + > noconfig_targets := menuconfig nconfig gconfig xconfig config oldconfig randconfig \ > defconfig %_defconfig allyesconfig allnoconfig silentoldconfig release \ > randpackageconfig allyespackageconfig allnopackageconfig \ > - print-version olddefconfig > + print-version olddefconfig version > > # Some global targets do not trigger a build, but are used to collect > # metadata, or do various checks. When such targets are triggered, > -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF