make source dependencies work
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Tue, 18 May 2021 01:46:19 +0000 (11:46 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Tue, 18 May 2021 01:46:19 +0000 (11:46 +1000)
Makefile

index 3c1f61a6bca20737a33345fb01a1e4adc459e892..7e3b60456bfff45338cf5024f087551a81d4b0dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
 INCS := $(shell grep ^include rrqforth.asm | tr -d "'" | sed 's/include//' )
-SRCS = rrqforth.asm $(INCS)
 
 # compile into 3 things: binary, symbolic information and debug support
-rrqforth: rrqforth.asm
+rrqforth: rrqforth.asm $(INCS)
        fasm $< -s $@.fas
         ./fas2txt.lsp $@.fas > $@.map
        chmod a+x $@