aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-23 16:49:30 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-23 16:49:30 +0200
commit5b89f59f1e31fb669444b340e75370ff9cb683c9 (patch)
tree96522a9950751f64566257208ee25460332b37a8 /Makefile
parentupdate dist (diff)
downloadgpp-5b89f59f1e31fb669444b340e75370ff9cb683c9.tar.gz
gpp-5b89f59f1e31fb669444b340e75370ff9cb683c9.tar.bz2
gpp-5b89f59f1e31fb669444b340e75370ff9cb683c9.tar.xz
python2 support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 440b453..851d2cf 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,8 @@ PREFIX = /usr
DATA = /share
BIN = /bin
PKGNAME = gpp
-PY3 = python3
-SHEBANG = /usr$(BIN)/env $(PY3)
+PY = python3
+SHEBANG = /usr$(BIN)/env $(PY)
COMMAND = gpp
LICENSES = $(DATA)/licenses
@@ -28,10 +28,10 @@ info: gpp.info
makeinfo "$<"
info/%.texinfo.install: info/%.texinfo
- $(PY3) gpp -s '?' -D GPP=$(COMMAND) < "$<" > "$@"
+ $(PY) gpp -s '?' -D GPP=$(COMMAND) < "$<" > "$@"
gpp: src/gpp.py
- VERSION=$(VERSION) SHEBANG="$(SHEBANG)" $(PY3) "$<" -u -u < "$<" > "$@"
+ VERSION='$(VERSION)' SHEBANG='$(SHEBANG)' $(PY) "$<" < "$<" > "$@"
.PHONY: install
install: install-core install-doc
@@ -67,5 +67,5 @@ uninstall:
.PHONY: clean
clean:
- -rm -f gpp gpp.info
+ -rm -f gpp gpp.info *.install* info/*.install