automake vs. GNU make
Posted Feb 7, 2008 4:55 UTC (Thu) by
vmole (guest, #111)
In reply to:
automake vs. GNU make by sward
Parent article:
LCA: Disintermediating distributions
Even neater: Stick the following as GNUMakefile in each of your subdirs:
CURMOD:=$(shell pwd | sed -e 's,.*/src/\(.*\),\1,')
all :
@cd $${PWD%$(CURMOD)} && $(MAKE) --no-print-directory $(CURMOD)
% :: FORCE
@cd $${PWD%$(CURMOD)} && $(MAKE) --no-print-directory $(CURMOD)/$@
FORCE:
which automatically transfers any make command up to the top level and re-invokes with the same arguments. (You'll need to tweak the sed command to match your layout.)
(
Log in to post comments)