aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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