mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
$(TOPDIR), make, scripts: Merged changes from V_1_2_3_33_YAPPLICATION_INIFILE_CTOR
Signed-off-by: Jan Lindemann <jan@jannet.de>
This commit is contained in:
parent
6fbb886828
commit
78bd6215b4
12 changed files with 346 additions and 28 deletions
10
make/dirs.mk
10
make/dirs.mk
|
|
@ -26,7 +26,9 @@ else
|
|||
SUBDIR_TARGETS = $(filter all install clean distclean,$(MAKECMDGOALS))
|
||||
endif
|
||||
|
||||
ifneq ($(DONT_CHECK_PREREQ_DONE),true)
|
||||
PREREQ_DIRS_DONE = $(addsuffix /dirs-all.done,$(filter-out $(TOPDIR) /opt/%,$(foreach p,$(PREREQ),$($(p)_DIR))))
|
||||
endif
|
||||
|
||||
all: dirs-all.done
|
||||
install: dirs-install.done
|
||||
|
|
@ -40,20 +42,24 @@ distclean: dirs.clean dirs.distclean
|
|||
# explicit duplication of pattern-rule is needed, otherwise .PHONY: dirs-all.done won't match
|
||||
dirs-all.done:
|
||||
set -e; for d in $(SUBDIRS) ; do make -wC $$d $*; done
|
||||
ifneq ($(DONT_CHECK_PREREQ_DONE),true)
|
||||
touch $@
|
||||
endif
|
||||
|
||||
dirs-%.done:
|
||||
set -e; for d in $(SUBDIRS) ; do make -wC $$d $*; done
|
||||
ifneq ($(DONT_CHECK_PREREQ_DONE),true)
|
||||
touch $@
|
||||
endif
|
||||
|
||||
ifeq ($(DEVELOPMENT),true)
|
||||
|
||||
dirs-all.done: $(wildcard $(BUILD_HDRDIR))
|
||||
|
||||
ifeq ($(MAKECMDGOALS),all)
|
||||
ifeq ($(SUBDIR_TARGETS),all)
|
||||
dirs-all.done: $(PREREQ_DIRS_DONE)
|
||||
endif
|
||||
ifeq ($(MAKECMDGOALS),install)
|
||||
ifeq ($(SUBDIR_TARGETS),install)
|
||||
dirs-all.done: $(PREREQ_DIRS_DONE)
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue