fix bug introduced with aliasing target "doc" to "docs"

* targets.mk: $(SUBDIRS) must not be used as a dependency since "doc"
  is both an existing directory and a phony target
This commit is contained in:
Achim Gratz 2012-04-22 08:05:51 +02:00 committed by Bastien Guerry
parent 22447fe485
commit 7993ae4816
1 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ ifneq ($(GITSTATUS),)
endif
.PHONY: default all oldorg up2 update compile lisp doc etc \
check test install info html pdf card docs $(INSTSUB) \
check test install info html pdf card doc docs $(INSTSUB) \
autoloads cleanall clean cleancontrib cleanrel clean-install \
cleanelc cleandirs cleanlisp cleandoc cleandocs cleantest
@ -37,8 +37,8 @@ compile-dirty:: lisp
$(MAKE) -C $< $@
all \
clean-install:: $(SUBDIRS)
$(foreach dir, $?, $(MAKE) -C $(dir) $@;)
clean-install::
$(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) $@;)
check test:: all
@ -73,8 +73,8 @@ $(INSTSUB):
autoloads: lisp
$(MAKE) -C $< $@
cleandirs: $(SUBDIRS)
$(foreach dir, $?, $(MAKE) -C $(dir) cleanall;)
cleandirs:
$(foreach dir, $(SUBDIRS), $(MAKE) -C $(dir) cleanall;)
clean: cleanrel
$(MAKE) -C lisp clean