diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-17 23:29:15 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-17 23:29:15 +0200 |
commit | 9a552adf3e33a7ea41a4eedc6150c1ece27952fe (patch) | |
tree | 1c8b9f9c0bdd82075c3d907f66fca5a58e739903 | |
parent | misc + add makefile (diff) | |
download | file2key-9a552adf3e33a7ea41a4eedc6150c1ece27952fe.tar.gz file2key-9a552adf3e33a7ea41a4eedc6150c1ece27952fe.tar.bz2 file2key-9a552adf3e33a7ea41a4eedc6150c1ece27952fe.tar.xz |
add install and uninstall rules1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -62,6 +62,20 @@ obj/%.o: src/%.c src/*.h $(CC) $(FLAGS) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< +.PHONY: install +install: bin/file2key + install -dm755 -- "$(DESTDIR)$(BINDIR)" + install -m755 bin/file2key -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" + install -dm755 -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + install -m644 LICENSE COPYING -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + +.PHONY: uninstall +uninstall: + -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" + -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE" + -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + -rm -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" + .PHONY: clean clean: |