diff options
author | Mattias Andrée <maandree@kth.se> | 2017-12-10 11:54:04 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-12-10 11:54:04 +0100 |
commit | 932b0ff87433e00415ca50f1031820db5a522309 (patch) | |
tree | 8db87d52c59fc50a101c59235c26126c7031655c /Makefile | |
parent | Simplify and change license to ISC (diff) | |
download | learn-your-telephone-number-932b0ff87433e00415ca50f1031820db5a522309.tar.gz learn-your-telephone-number-932b0ff87433e00415ca50f1031820db5a522309.tar.bz2 learn-your-telephone-number-932b0ff87433e00415ca50f1031820db5a522309.tar.xz |
makefile: add install and uninstall1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -8,6 +8,19 @@ all: learn-your-telephone-number learn-your-telephone-number: learn-your-telephone-number.o $(CC) -o $@ $@.o $(LDFLAGS) +install: learn-your-telephone-number + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin/" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/" + mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/learn-your-telephone-number/" + cp -- learn-your-telephone-number "$(DESTDIR)$(PREFIX)/bin/" + cp -- learn-your-telephone-number.1 "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/learn-your-telephone-number/" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/learn-your-telephone-number" + -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/learn-your-telephone-number.1" + -rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/learn-your-telephone-number/" + clean: -rm -f -- learn-your-telephone-number *.o |