Skip to content

Commit dc5b200

Browse files
vriesdavidmalcolm
authored andcommitted
Makefile: Add demo.c to dependencies
The demo source file demo.c is hardcoded in the make recipe, and consequently is not found when using a seperate build dir. Fix this by listing demo.c as a dependency of the demo target, and using $< in the recipe instead.
1 parent 561a11f commit dc5b200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ debug: plugin
292292
$(INVOCATION_ENV_VARS) $(CC) -v $(TEST_CFLAGS) $(CURDIR)/test.c
293293

294294
# A simple demo, to make it easy to demonstrate the cpychecker:
295-
demo: plugin
296-
$(INVOCATION_ENV_VARS) $(srcdir)./gcc-with-cpychecker -c $(PYTHON_INCLUDES) demo.c
295+
demo: demo.c plugin
296+
$(INVOCATION_ENV_VARS) $(srcdir)./gcc-with-cpychecker -c $(PYTHON_INCLUDES) $<
297297

298298
# Run 'demo', and verify the output.
299299
testdemo: DEMO_REF=$(shell \

0 commit comments

Comments
 (0)