From 0fb98c03fa3a9a0aa5138223619e6aff56ee4af0 Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Mon, 28 Dec 2015 21:56:46 -0600 Subject: [PATCH] Recompile everything if VERSION.txt changes The contents of that file are included on the compiler command-line for every file. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0d27669..acc8e27 100644 --- a/Makefile +++ b/Makefile @@ -73,12 +73,12 @@ distclean : clean .PHONY : default all tests install clean distclean -build/mingw/%.o : src/%.cc +build/mingw/%.o : src/%.cc VERSION.txt @echo Compiling $< @mkdir -p $$(dirname $@) @$(MINGW_CXX) $(MINGW_CXXFLAGS) -I src/include -c -o $@ $< -build/unix/%.o : src/%.cc +build/unix/%.o : src/%.cc VERSION.txt @echo Compiling $< @mkdir -p $$(dirname $@) @$(UNIX_CXX) $(UNIX_CXXFLAGS) -I src/include -c -o $@ $<