From 5733b88d1562f30398e10b008a7fc0f5be68f438 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 8 Mar 2014 03:39:36 +0100 Subject: update makefile to install join.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 29da66a..29f206a 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,10 @@ LICENSEDIR ?= $(DATADIR)/licenses # The name of the package as it should be installed PKGNAME ?= join-python +# The version of python as in /usr/lib +PYVERSION ?= 3.3 +# /usr/lib/python +PYLIBDIR ?= $(LIBDIR)/python$(PYVERSION) # Build rules @@ -77,7 +81,12 @@ install-all: install-base install-doc # Install base rules .PHONY: install-base -install-base: install-license +install-base: install-lib install-license + +.PHONY: install-lib +install-lib: + install -dm755 -- "$(DESTDIR)$(PYLIBDIR)" + install -m644 src/join.py -- "$(DESTDIR)$(PYLIBDIR)/join.py" .PHONY: install-license install-license: @@ -114,6 +123,7 @@ install-dvi: join-python.dvi .PHONY: uninstall uninstall: + -rm -- "$(DESTDIR)$(PYLIBDIR)/join.py" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE" -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" -- cgit v1.2.3-70-g09d2