Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2003 11:43:33 +0200
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        Oliver Lehmann <lehmann@ans-netz.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: new target to display options
Message-ID:  <20030420114333.426f094d.lehmann@ans-netz.de>
In-Reply-To: <20030418122910.5a39bb44.lehmann@ans-netz.de>
References:  <20030418101304.GF20941@freepuppy.bellavista.cz> <20030418122910.5a39bb44.lehmann@ans-netz.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

here is a sample Makefile:



OPTIONS=	WITH_LALA:lala: \
		WITH_GAGAAA:ga ga ga:

options:
	@echo ${OPTIONS} | awk ' \
		BEGIN {\
			FS="[:]";\
			print "You may use the following build options:";\
		}\
		{\
			for(i=1;i<NF;i+=2) {\
				printf("%20s:\t%s\n",$$(i),$$(i+1));\
			}\
		}'


just type "make options" and relax ;)

  Greetings, Oliver

-- 
 Oliver Lehmann
        @home: lehmann@ans-netz.de
      @office: oliver.lehmann@mgi.de
         @www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030420114333.426f094d.lehmann>