Skip to content

Commit

Permalink
Suppressed no-op output in makefile, and modified incremental build t…
Browse files Browse the repository at this point in the history
…est to account for phony indirection which causes executables to be touched. This test should be rewritten, but hopefully this works for now.
  • Loading branch information
JohnJacobsonIII committed Jun 11, 2021
1 parent 8086764 commit 0912abb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Makefile: $(FLIT_SCRIPT_DIR)/flit_update.py
define REC_COMPILE_RULE
ifneq ($$(R_TARGET),$1)
$1: $1-phony
true
@true

.PHONY: $1-phony
$1-phony: Makefile custom.mk
Expand Down
4 changes: 2 additions & 2 deletions tests/flit_makefile/tst_incremental_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
['devrun', 'obj/dev/ALL-FLIT.cpp.o', 'obj/dev/Empty.cpp.o', 'obj/dev/main.cpp.o']
>>> touched_files(after_build)
[]
['devrun']
>>> touched_files(after_modify)
['devrun', 'obj/dev/main.cpp.o']
Expand Down Expand Up @@ -177,7 +177,7 @@
['gtrun', 'obj/gt/ALL-FLIT.cpp.o', 'obj/gt/Empty.cpp.o', 'obj/gt/main.cpp.o']
>>> touched_files(after_build)
[]
['gtrun']
>>> touched_files(after_modify)
['gtrun', 'obj/gt/main.cpp.o']
Expand Down

0 comments on commit 0912abb

Please sign in to comment.