dirs.mk: Targets with same name as subdirs are not remade

Hopefully fix unwillingness to remake targets with the same name as
subdirs.
This commit is contained in:
Jan Lindemann 2010-12-02 21:43:03 +00:00 committed by Jan Lindemann
commit a655d03624

View file

@ -10,24 +10,29 @@ include $(MODDIR)/make/defs.mk
SUBDIRS ?= $(FIND_SUBDIRS)
ifeq ($(SUBDIRS),)
all:
subdirs:
clean distclean:
.DEFAULT:
install:
else
.PHONY: $(SUBDIRS)
all subdirs:
$(make_subdirs)
install:
$(MAKECMDGOALS):
$(make_subdirs_target)
clean:
$(make_subdirs_target)
clean: dirs.clean
distclean: dirs.distclean clean
dirs.clean:
rm -rf $(TEXTCLEAN) $(CLEAN) dist *.done *~ .*.swp *.tmp core *.rep
distclean: rmdistclean clean
rmdistclean:
dirs.distclean:
rm -rf $(DISTCLEAN)
.DEFAULT: