aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-07-06 02:34:22 +0200
committerMattias Andrée <maandree@kth.se>2021-07-06 02:34:22 +0200
commit39c405d92483c2f70df361ecd5836ecef3cf5e7f (patch)
tree6803e7e75ac22ddc5a49435d28445e897779cd4a /Makefile
parentFirst commit (diff)
downloadapsh-39c405d92483c2f70df361ecd5836ecef3cf5e7f.tar.gz
apsh-39c405d92483c2f70df361ecd5836ecef3cf5e7f.tar.bz2
apsh-39c405d92483c2f70df361ecd5836ecef3cf5e7f.tar.xz
Second commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
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