From 7f1f9ec8e75b3627b795ddecd7e391a5ebe95528 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 9 Jul 2023 15:43:10 +0300 Subject: change so that bcode.h and bcode.c are generated --- example/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'example/Makefile') diff --git a/example/Makefile b/example/Makefile index 0bce1ec..d9b0158 100644 --- a/example/Makefile +++ b/example/Makefile @@ -5,13 +5,11 @@ all: exec exec: bcode.o main.o $(CC) $(CFLAGS) $^ -o $@ -bcode.o: ../bcode.c +bcode.o: bcode.c $(CC) $(CFLAGS) -c $^ -o $@ -../bcode.c: ../gen/select.h -../gen/select.h: rules.py - cd .. && ./bcgen example/rules.py - touch ../bcode.c # just to get make to wake up +bcode.c: rules.py + ../bcgen rules.py .PHONY: clean clean: -- cgit v1.3