fix non working Makefiles

This commit is contained in:
mrdudz
2020-10-15 18:35:54 +02:00
parent 095de4ea52
commit f60af0301a
4 changed files with 25 additions and 14 deletions

View File

@@ -29,7 +29,16 @@ else
GRC := $(if $(wildcard ../../../bin/grc65*),../../../bin/grc65,grc65)
endif
all: test.s vlir.cvt
DIRLIST = grc
define SUBDIR_recipe
@$(MAKE) -C $(dir) --no-print-directory $@
endef # SUBDIR_recipe
samples: test.s vlir.cvt
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))
test.s: test.grc
$(GRC) -s test.s test.grc
@@ -50,3 +59,4 @@ clean:
$(RM) test.s test.h
$(RM) vlir.s vlir.cvt vlir.c vlir.h
$(RM) *.o
$(foreach dir,$(DIRLIST),$(SUBDIR_recipe))