Recompile everything if VERSION.txt changes

The contents of that file are included on the compiler command-line for
every file.
This commit is contained in:
Ryan Prichard 2015-12-28 21:56:46 -06:00
parent 1c3f54caf4
commit 0fb98c03fa

View File

@ -73,12 +73,12 @@ distclean : clean
.PHONY : default all tests install clean distclean .PHONY : default all tests install clean distclean
build/mingw/%.o : src/%.cc build/mingw/%.o : src/%.cc VERSION.txt
@echo Compiling $< @echo Compiling $<
@mkdir -p $$(dirname $@) @mkdir -p $$(dirname $@)
@$(MINGW_CXX) $(MINGW_CXXFLAGS) -I src/include -c -o $@ $< @$(MINGW_CXX) $(MINGW_CXXFLAGS) -I src/include -c -o $@ $<
build/unix/%.o : src/%.cc build/unix/%.o : src/%.cc VERSION.txt
@echo Compiling $< @echo Compiling $<
@mkdir -p $$(dirname $@) @mkdir -p $$(dirname $@)
@$(UNIX_CXX) $(UNIX_CXXFLAGS) -I src/include -c -o $@ $< @$(UNIX_CXX) $(UNIX_CXXFLAGS) -I src/include -c -o $@ $<