mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
rules.mk: Fix dependency checks on missing .cpp an .c files
This commit is contained in:
parent
9a92282f41
commit
0e5e71a6e7
1 changed files with 4 additions and 2 deletions
|
|
@ -187,8 +187,10 @@ endif
|
|||
#depend.mk: $(SRC_ALL_CPP)
|
||||
# > $@ && makedepend -f depend.mk -- $(CPPFLAGS) $(DEPEND_CPPFLAGS) -- $(SRC_ALL_CPP) 2>&1 | sed '/non-portable whitespace/ d'
|
||||
|
||||
depend.mk: $(SRC_ALL_CPP)
|
||||
> $@ && gcc -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $(filter-out %.h,$(SRC_ALL_CPP)) -o $@
|
||||
depend.mk: $(filter-out %.h, $(SRC_ALL_CPP) $(PREREQ_DONE))
|
||||
> $@ && if [ "$(wildcard *.cpp *.c)" ]; then \
|
||||
gcc -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $(filter-out %.h,$(SRC_ALL_CPP)) -o $@; \
|
||||
fi
|
||||
|
||||
depend: depend.mk
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue