diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-04-19 16:00:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-04-19 16:00:09 -0400 |
commit | 7793ddf23c4bc3ca3dcbe7c4e786426815f35b2b (patch) | |
tree | 704b59de3aaefcb3551ca724f93d6d0e3dad8002 /Makefile | |
parent | a41df19413f8e1b45b25fc4bd6a4434ad38be057 (diff) | |
download | bfs-7793ddf23c4bc3ca3dcbe7c4e786426815f35b2b.tar.xz |
Makefile: Replace flags.sh with a two-line recipe
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |