summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index acc5cbf..a24fa72 100644
--- a/Makefile
+++ b/Makefile
@@ -243,7 +243,8 @@ build/tests/%.o: tests/%.c build/FLAGS | build/tests
# Save the full set of flags to rebuild everything when they change
build/FLAGS: FORCE | build
- @./flags.sh $@ $(CC) : $(ALL_CFLAGS) : $(ALL_LDFLAGS) : $(ALL_LDLIBS)
+ @echo $(CC) : $(ALL_CFLAGS) : $(ALL_LDFLAGS) : $(ALL_LDLIBS) >$@.tmp
+ @test -e $@ && cmp -s $@ $@.tmp && rm $@.tmp || mv $@.tmp $@
.PHONY: FORCE
# Make sure that "make release" builds everything, but "make release build/main.o" doesn't