From f22b42c2cdade6e02b4d4d4c9434723841b6f333 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 3 Jan 2012 16:33:23 -0800 Subject: [PATCH] Update tgt-pcb Makefile to handle/clean up config header This change matches what is in other header files. --- tgt-pcb/Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tgt-pcb/Makefile.in b/tgt-pcb/Makefile.in index f8e8d16a0..9178dcca6 100644 --- a/tgt-pcb/Makefile.in +++ b/tgt-pcb/Makefile.in @@ -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