mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-24 06:40:39 +01:00
dirs.mk: Add (half understood but working) support for empty SUBDIRS variable
This commit is contained in:
parent
4d7985324f
commit
1b365f0ebd
1 changed files with 14 additions and 1 deletions
15
make/dirs.mk
15
make/dirs.mk
|
|
@ -5,12 +5,25 @@
|
||||||
|
|
||||||
include $(MODDIR)/make/defs.mk
|
include $(MODDIR)/make/defs.mk
|
||||||
|
|
||||||
subdirs:
|
subdirs:
|
||||||
|
ifdef SUBDIRS
|
||||||
|
else
|
||||||
$(make_subdirs)
|
$(make_subdirs)
|
||||||
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
ifdef SUBDIRS
|
||||||
|
else
|
||||||
rm -rf $(TEXTCLEAN) $(CLEAN)
|
rm -rf $(TEXTCLEAN) $(CLEAN)
|
||||||
$(make_subdirs_target)
|
$(make_subdirs_target)
|
||||||
|
endif
|
||||||
|
|
||||||
.DEFAULT:
|
.DEFAULT:
|
||||||
|
ifdef SUBDIRS
|
||||||
|
else
|
||||||
$(make_subdirs_target)
|
$(make_subdirs_target)
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef SUBDIRS
|
||||||
|
install:
|
||||||
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue