Generalise 'all' rule to arbitrary prerequisite sub-directories.

This commit is contained in:
Keith Marshall 2012-01-15 12:27:13 +00:00
parent 09223354f9
commit 3ef7500436
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2012-01-15 Keith Marshall <keithmarshall@users.sf.net>
Generalise 'all' rule to arbitrary prerequisite sub-directories.
* Makefile.in: (all): Make it depend on all $(SUBDIRS), not just on...
(lib): ...this; replace it with a generic $(SUBDIRS) goal.
2012-01-15 Keith Marshall <keithmarshall@users.sf.net>
Derive package release index from configure time specification.

View File

@ -33,14 +33,14 @@ DISTFILES = \
ChangeLog configure.ac Makefile.in Makefile.comm.in configure \
config.guess config.sub install-sh README.w32api TODO CONTRIBUTIONS
all: lib
all: $(SUBDIRS)
%-subdirs:
for i in $(SUBDIRS); do \
$(MAKE) -C $$i $*; \
done
lib:
$(SUBDIRS):
$(MAKE) -C $@
test: