blob: f841829ae17b2a3b6f9a582807064aba071683a0 (
plain) (
blame)
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
|
VERSION = 1.5
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
PKGNAME = gpp
COMMAND = gpp
PY = python
SHEBANG = /usr/bin/env $(PY)
all: gpp
gpp: gpp.py
env SHEBANG='$(SHEBANG)' $(PY) gpp.py < gpp.py > $@
install: gpp
install -dm755 -- "$(DESTDIR)$(PREFIX)/bin"
install -m755 -- gpp "$(DESTDIR)$(PREFIX)/bin/$(COMMAND)"
install -dm755 -- "$(DESTDIR)$(MANPREFIX)/man"
install -m644 -- gpp.1 "$(DESTDIR)$(MANPREFIX)/man/$(COMMAND).1"
uninstall:
-rm -- "$(DESTDIR)$(PREFIX)/bin/$(COMMAND)"
-rm -- "$(DESTDIR)$(MANPREFIX)/man/$(COMMAND).1"
clean:
-rm -rf -- gpp bin obj
.PHONY: all install uninstall clean
|