blob: 1003a776b1617cbaf1b8616d02568f5913792f91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
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
|