mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
make: Change prerequisites somewhat
Some changes in the prerequisites: - Build on MODDIR, not TOPDIR - Doneclean now also removes .done of prerequisites
This commit is contained in:
parent
61fe4a73d5
commit
795f2e245d
2 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ LOCAL_C = $(wildcard *.c)
|
||||||
LOCAL_CPP = $(wildcard *.c *.cpp *.cc *.C)
|
LOCAL_CPP = $(wildcard *.c *.cpp *.cc *.C)
|
||||||
LOCAL_CSRC = $(LOCAL_H) $(LOCAL_C) $(LOCAL_CPP)
|
LOCAL_CSRC = $(LOCAL_H) $(LOCAL_C) $(LOCAL_CPP)
|
||||||
|
|
||||||
PREREQ_DIR = $(patsubst %,$(TOPDIR)/%,$(LOCAL_PREREQ))
|
PREREQ_DIR = $(patsubst %,$(MODDIR)/%,$(LOCAL_PREREQ))
|
||||||
PREREQ_DONE = $(patsubst %,%/all.done,$(PREREQ_DIR))
|
PREREQ_DONE = $(patsubst %,%/all.done,$(PREREQ_DIR))
|
||||||
PREREQ_H = $(foreach dir,$(PREREQ_DIR),$(wildcard $(dir)/*.h))
|
PREREQ_H = $(foreach dir,$(PREREQ_DIR),$(wildcard $(dir)/*.h))
|
||||||
PREREQ_C = $(foreach dir,$(PREREQ_DIR),$(wildcard $(dir)/*.c))
|
PREREQ_C = $(foreach dir,$(PREREQ_DIR),$(wildcard $(dir)/*.c))
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# contact@jannet.de
|
# contact@jannet.de
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
all.done: $(ALL)
|
all.done: $(PREREQ_DONE) $(ALL)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
%.done:
|
%.done:
|
||||||
|
|
@ -73,7 +73,7 @@ allclean:
|
||||||
rm -rf $(ALL)
|
rm -rf $(ALL)
|
||||||
|
|
||||||
doneclean:
|
doneclean:
|
||||||
rm -rf *.done
|
rm -rf *.done $(PREREQ_DONE)
|
||||||
|
|
||||||
execlean: allclean objclean textclean
|
execlean: allclean objclean textclean
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue