-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
43 lines (30 loc) · 904 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
prefix = /usr/local
bindir = $(prefix)/bin
datadir = $(prefix)/share
mandir = $(datadir)/man
INSTALL = install -c
INSTALL_DATA = $(INSTALL) -m 644
INSTALL_SCRIPT = $(INSTALL) -m 755
MKDIR_P = mkdir -p
PROVE = prove
all:
check test:
$(PROVE) $(PROVEFLAGS)
maintainer-check:
$(SHELL) -n pex
lexgrog pex.1 >/dev/null
man --warnings=w -l pex.1 >/dev/null
installdirs:
$(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
install: all installdirs
$(INSTALL_SCRIPT) pex $(DESTDIR)$(bindir)/pex
$(INSTALL_DATA) pex.1 $(DESTDIR)$(mandir)/man1/pex.1
uninstall:
$(RM) $(DESTDIR)$(bindir)/pex $(DESTDIR)$(mandir)/man1/pex.1
DEB_VERSION = $(shell git describe | sed s/-/+/g)
debian/changelog:
dch --create --package=pex --newversion='$(DEB_VERSION)' -D private --force-distribution 'Automatic changelog entry'
debian/copyright:
cp LICENSE $@
deb: debian/changelog debian/copyright
debuild