mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 14:30:39 +01:00
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:
parent
3624484e7c
commit
a655d03624
1 changed files with 10 additions and 5 deletions
15
make/dirs.mk
15
make/dirs.mk
|
|
@ -10,24 +10,29 @@ include $(MODDIR)/make/defs.mk
|
||||||
SUBDIRS ?= $(FIND_SUBDIRS)
|
SUBDIRS ?= $(FIND_SUBDIRS)
|
||||||
|
|
||||||
ifeq ($(SUBDIRS),)
|
ifeq ($(SUBDIRS),)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
subdirs:
|
subdirs:
|
||||||
clean distclean:
|
clean distclean:
|
||||||
.DEFAULT:
|
.DEFAULT:
|
||||||
install:
|
install:
|
||||||
|
|
||||||
else
|
else
|
||||||
|
.PHONY: $(SUBDIRS)
|
||||||
|
|
||||||
all subdirs:
|
all subdirs:
|
||||||
$(make_subdirs)
|
$(make_subdirs)
|
||||||
|
|
||||||
install:
|
$(MAKECMDGOALS):
|
||||||
$(make_subdirs_target)
|
$(make_subdirs_target)
|
||||||
|
|
||||||
clean:
|
clean: dirs.clean
|
||||||
$(make_subdirs_target)
|
distclean: dirs.distclean clean
|
||||||
|
|
||||||
|
dirs.clean:
|
||||||
rm -rf $(TEXTCLEAN) $(CLEAN) dist *.done *~ .*.swp *.tmp core *.rep
|
rm -rf $(TEXTCLEAN) $(CLEAN) dist *.done *~ .*.swp *.tmp core *.rep
|
||||||
|
|
||||||
distclean: rmdistclean clean
|
dirs.distclean:
|
||||||
rmdistclean:
|
|
||||||
rm -rf $(DISTCLEAN)
|
rm -rf $(DISTCLEAN)
|
||||||
|
|
||||||
.DEFAULT:
|
.DEFAULT:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue