Update tgt-pcb Makefile to handle/clean up config header

This change matches what is in other header files.
This commit is contained in:
Cary R 2012-01-03 16:33:23 -08:00
parent 7f4246a916
commit f22b42c2cd
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,7 @@ clean:
distclean: clean
rm -f Makefile config.log
rm -f stamp-pcb_config-h pcb_config.h
cppcheck: $(O:.o=.c)
cppcheck --enable=all -f $(INCLUDE_PATH) $^
@ -66,6 +67,11 @@ Makefile: $(srcdir)/Makefile.in ../config.status
dep:
mkdir dep
stamp-pcb_config-h: $(srcdir)/pcb_config.h.in ../config.status
@rm -f $@
cd ..; ./config.status --header=tgt-pcb/pcb_config.h
pcb_config.h: stamp-pcb_config-h
%.o: %.cc
$(CXX) $(CPPFLAGS) $(CXXFLAGS) @DEPENDENCY_FLAG@ -c $< -o $*.o
mv $*.d dep