aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/Makefile
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-07-31 06:18:45 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:09 +0100
commit7bf323843ee2f59bcbdaa8e5dd7b060a2df4ea4d (patch)
tree9be1e61872b69e254171f92c358a6bc7fbe33cc0 /tests/tests2/Makefile
parented7d54651d2ef33dd6f644f23ba2fa64706e84db (diff)
downloadtinycc-7bf323843ee2f59bcbdaa8e5dd7b060a2df4ea4d.tar.gz
tinycc-7bf323843ee2f59bcbdaa8e5dd7b060a2df4ea4d.tar.bz2
struct-init: Cleanup
Remove dead code and variables. Properly check for unions when skipping fields in initializers. Make tests2/*.expect depend on the .c files so they are automatically rebuilt when the latter change.
Diffstat (limited to 'tests/tests2/Makefile')
-rw-r--r--tests/tests2/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile
index 50cff85..2434215 100644
--- a/tests/tests2/Makefile
+++ b/tests/tests2/Makefile
@@ -53,7 +53,7 @@ all test: $(filter-out $(SKIP),$(TESTS))
@diff -Nbu $(SRC)/$*.expect $*.output && rm -f $*.output
# automatically generate .expect files with gcc:
-%.expect :
+%.expect : %.c
(gcc -w $*.c -o a.exe && ./a.exe $(ARGS)) >$*.expect 2>&1; rm -f a.exe
# tell make not to delete