new target to display options
Oliver Lehmann
lehmann at ans-netz.de
Sun Apr 20 02:43:44 PDT 2003
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 at ans-netz.de
@office: oliver.lehmann at mgi.de
@www: http://www.pofo.de/ | http://wishlist.ans-netz.de/
More information about the freebsd-ports
mailing list