subdirs.mk: Move call targets up

This commit is contained in:
Jan Lindemann 2002-07-25 20:46:01 +00:00 committed by Jan Lindemann
commit dc55e330e2

View file

@ -1,7 +1,7 @@
clean.var: all: all.dirs
rm -rf $(CLEAN) install: install.dirs
distclean.var: clean: clean.dirs clean.var
rm -rf $(DISTCLEAN) distclean: distclean.dirs distclean.var
ifdef SUBDIRS ifdef SUBDIRS
@ -14,11 +14,6 @@ clean.dirs:
distclean.dirs: distclean.dirs:
set -e; for dir in $(SUBDIRS); do make -C $$dir distclean; done set -e; for dir in $(SUBDIRS); do make -C $$dir distclean; done
all: all.dirs
install: install.dirs
clean: clean.dirs clean.var
distclean: distclean.dirs distclean.var
else else
all.dirs: all.dirs:
@ -27,3 +22,9 @@ clean.dirs:
distclean.dirs: distclean.dirs:
endif endif
clean.var:
rm -rf $(CLEAN)
distclean.var:
rm -rf $(DISTCLEAN)