Makefile: Make all output files depend on the Makefile itself

If you now rerun ./configure (e.g. for a different --prefix), everything
will be recompiled.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1205 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-09-14 17:57:15 +00:00
parent 69a429bca0
commit debe3ec335
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ clean:
distclean: clean
rm -rf $(DISTCLEAN)
%.o: %.cpp
%.o: %.cpp Makefile
@mkdir -p .depend
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $< -MMD -MF .depend/$<.dep
+1 -1
View File
@@ -7,7 +7,7 @@ MAN1 := znc.1.gz znc-buildmod.1.gz znc-config.1.gz
all: $(MAN1)
%.1.gz: %.1
%.1.gz: %.1 Makefile
gzip -9 <$< >$@
clean:
+1 -1
View File
@@ -70,7 +70,7 @@ install_metadirs: create_install_dir
clean:
rm -rf $(CLEAN)
%.so: %.cpp
%.so: %.cpp Makefile
@mkdir -p .depend
$(CXX) $(MODFLAGS) $(INCLUDES) $(LDFLAGS) -shared -o $@ $< $($(basename $<)FLAGS) -MMD -MF .depend/$<.dep