chiark / gitweb /
Makefile.in: Handle conffile.yy.h properly
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 20 Oct 2014 23:33:49 +0000 (00:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Oct 2014 00:07:13 +0000 (01:07 +0100)
This needs to be deleted by clean.  And it needs to be a dependency of
the %.o pattern rule.  (Since we rely on autogenerated .d header file
dependencies, are fine for manually-edited header files but not
autogenerated ones.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile.in

index 24932aa27956861a18f4425226a47919b70e8e29..06ea112c6bac31d920f7f0422eaa29f7587c1ffd 100644 (file)
@@ -86,7 +86,7 @@ STALE_PYTHON_FILES=   $(foreach e, py pyc, \
 %.tab.c %.tab.h:       %.y
        bison -d -o $@ $<
 
 %.tab.c %.tab.h:       %.y
        bison -d -o $@ $<
 
-%.o: %.c
+%.o: %.c conffile.yy.h
        $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c $< -o $@
 
 all:   $(TARGETS) check
        $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c $< -o $@
 
 all:   $(TARGETS) check
@@ -191,7 +191,7 @@ install-force:
        $(MAKE) install
 
 clean:
        $(MAKE) install
 
 clean:
-       $(RM) -f *.o *.yy.c *.tab.[ch] $(TARGETS) core version.c
+       $(RM) -f *.o *.yy.[ch] *.tab.[ch] $(TARGETS) core version.c
        $(RM) -f *.d *~ eax-*-test.confirm eax-*-test
 
 realclean:     clean
        $(RM) -f *.d *~ eax-*-test.confirm eax-*-test
 
 realclean:     clean