From 39c405d92483c2f70df361ecd5836ecef3cf5e7f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Jul 2021 02:34:22 +0200 Subject: Second commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 16394bb..696478c 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,13 @@ CONFIGFILE = config.mk include $(CONFIGFILE) OBJ =\ - apsh.o + apsh.o\ + preparser.o\ + tokeniser.o\ + parser.o HDR =\ + common.h\ config.h all: apsh @@ -18,10 +22,17 @@ $(OBJ): $(@:.o=.c) $(HDR) apsh: $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) +install: apsh + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/" + cp -- apsh "$(DESTDIR)$(PREFIX)/bin/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/apsh" + clean: -rm -f -- *.o *.su apsh .SUFFIXES: .SUFFIXES: .o .c -.PHONY: all clean +.PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2