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:
parent
1c3f54caf4
commit
0fb98c03fa
4
Makefile
4
Makefile
@ -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 $@ $<
|
||||||
|
Loading…
Reference in New Issue
Block a user