diff options
author | Mattias Andrée <maandree@kth.se> | 2021-07-06 02:34:22 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-07-06 02:34:22 +0200 |
commit | 39c405d92483c2f70df361ecd5836ecef3cf5e7f (patch) | |
tree | 6803e7e75ac22ddc5a49435d28445e897779cd4a /Makefile | |
parent | First commit (diff) | |
download | apsh-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 '')
-rw-r--r-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 |