Modify header dependency method

This commit is contained in:
Ai Lin Chia
2016-08-26 15:24:56 +02:00
parent 022bb663ee
commit 0bc9094b10
2 changed files with 7 additions and 7 deletions

2
.gitignore vendored

@ -3,12 +3,12 @@
/statsdb/
# generated file/binary
*.o
*.d
*.dat
*.conf.saving
*.conf
*.cache
diskusage
Make.depend
gb
gb.oldsave
urlinfo

@ -121,6 +121,9 @@ endif
CPPFLAGS += $(CONFIG_CPPFLAGS)
# dependencies
CPPFLAGS += -MMD -MP
# export to sub-make
export CONFIG_CPPFLAGS
@ -304,7 +307,7 @@ systemtest:
.PHONY: clean
clean:
-rm -f *.o gb core core.* libgb.a
-rm -f *.o *.d gb core core.* libgb.a
-rm -f gmon.*
-rm -f *.gcda *.gcno coverage*.html
-rm -f *.ll *.ll.out pstack.txt
@ -366,10 +369,7 @@ install:
ln -s /etc/init.d/gb $(DESTDIR)/etc/rc3.d/S99gb
.PHONY: depend
depend: entities.inc
@echo "generating dependency information"
$(CXX) -MM $(DEFS) $(DPPFLAGS) *.cpp > Make.depend
DEPS := $(OBJS:.o=.d)
-include Make.depend
-include $(DEPS)