updated Makefiles to not print the "*.dep: No such file or directory" warnings
git-svn-id: svn://anubis/fart/trunk@204 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
9f9ce1a8f5
commit
72a5023539
5 files changed
+24
-12
No files matched your search
+5
-2
@@ -5,8 +5,9 @@ BISON := bison
|
||||
PARSER := parser
|
||||
|
||||
OBJS := lex.yy.o $(PARSER).tab.o $(patsubst %.cc,%.o,$(wildcard *.cc))
|
||||
DEPS := $(OBJS:.o=.dep)
|
||||
|
||||
all: $(OBJS)
|
||||
all: $(DEPS) $(OBJS)
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) $<
|
||||
@@ -31,4 +32,6 @@ clean:
|
||||
-rm -f lex.yy.cc $(PARSER).tab.cc $(PARSER).tab.hh *~ *.o *.dep
|
||||
|
||||
# Include dependency files
|
||||
include $(OBJS:.o=.dep)
|
||||
ifndef CLEAN
|
||||
-include $(DEPS)
|
||||
endif
|
||||
Reference in new issue
Block a user