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:
Jan Lindemann 2001-08-01 11:09:10 +00:00 committed by Jan Lindemann
commit 795f2e245d
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ LOCAL_C = $(wildcard *.c)
LOCAL_CPP = $(wildcard *.c *.cpp *.cc *.C)
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_H = $(foreach dir,$(PREREQ_DIR),$(wildcard $(dir)/*.h))
PREREQ_C = $(foreach dir,$(PREREQ_DIR),$(wildcard $(dir)/*.c))

View file

@ -3,7 +3,7 @@
# contact@jannet.de
# $Id$
all.done: $(ALL)
all.done: $(PREREQ_DONE) $(ALL)
touch $@
%.done:
@ -73,7 +73,7 @@ allclean:
rm -rf $(ALL)
doneclean:
rm -rf *.done
rm -rf *.done $(PREREQ_DONE)
execlean: allclean objclean textclean