diff options
author | Aki <please@ignore.pl> | 2022-07-08 17:07:13 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-07-08 17:07:13 +0200 |
commit | 14bfd00920bfa9c4160786e486ed12841cc26cc3 (patch) | |
tree | eeda4ee3ad0b0896217b333eb6f5232658dde399 | |
parent | c8819b9e49dee95b7b7c0e4c1d4bf59500f0c860 (diff) | |
download | pkgrel-14bfd00920bfa9c4160786e486ed12841cc26cc3.zip pkgrel-14bfd00920bfa9c4160786e486ed12841cc26cc3.tar.gz pkgrel-14bfd00920bfa9c4160786e486ed12841cc26cc3.tar.bz2 |
Added install and uninstall targets
-rw-r--r-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,9 +1,23 @@ CFLAGS=`pkg-config --cflags libgit2` LDLIBS=`pkg-config --libs libgit2` +PREFIX?=/usr/local +BINDIR?=$(PREFIX)/bin +DATADIR?=$(PREFIX)/share +MANDIR?=$(DATADIR)/man/man1 + all: pkgrel clean: rm -f *.o pkgrel -.PHONY: all clean +install: pkgrel + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(MANDIR) + cp -f pkgrel $(DESTDIR)$(BINDIR)/pkgrel + chmod 755 $(DESTDIR)$(BINDIR)/pkgrel + +uninstall: + rm -f $(DESTDIR)$(BINDIR)/pkgrel + +.PHONY: all clean install uninstall |