aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-05-02 17:24:20 -0400
committerBruce Hill <bruce@bruce-hill.com>2022-05-02 17:24:20 -0400
commiteb0f18dc7956a1f3ee51c20dedcc02b5304d5ce8 (patch)
tree6d09604fc7b5ff3c6ae2d345a7dd8b2d079e7aef
parente071ac7b12260b4dcbc80f4c864706de29a6d3c9 (diff)
Added recursive make rules
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index abbdb19..fa0131b 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ ALL_FLAGS=$(CFLAGS) $(OSFLAGS) -DBP_NAME="\"$(NAME)\"" $(EXTRA) $(CWARN) $(G) $(
CFILES=pattern.c utils.c match.c files.c printmatch.c json.c utf8.c
OBJFILES=$(CFILES:.c=.o)
-all: $(NAME) bp.1
+all: $(NAME) bp.1 lua
%.o: %.c %.h utf8.h
$(CC) -c $(ALL_FLAGS) -o $@ $<
@@ -42,6 +42,9 @@ tags: $(CFILES) bp.c
clean:
rm -f $(NAME) $(OBJFILES)
+lua:
+ cd Lua && make
+
test: $(NAME)
./$(NAME) Comment -r '[@0]' >/dev/null
./$(NAME) -g ./grammars/bp.bp -p Grammar ./grammars/bp.bp >/dev/null
@@ -81,4 +84,4 @@ uninstall:
[ "$$confirm" != n ] && rm -rf ~/.config/$(NAME); \
fi
-.PHONY: all clean install uninstall leaktest splint test tutorial
+.PHONY: all clean install uninstall leaktest splint test tutorial lua