aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 50ede37db45bbe649b990c35437bb9924dc2891a (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
.POSIX:

PREFIX = /usr/local

PYTHON_MAJOR = $$(python --version 2>&1 | cut -d . -f 1 | cut -d ' ' -f 2)
PYTHON_MINOR = $$(python$(PYTHON_MAJOR) --version 2>&1 | cut -d . -f 2)

all:
	@true

check:
	python$(PYTHON_MAJOR) ./test.py

install:
	mkdir -p -- "$(DESTDIR)$(PREFIX)/lib/python$(PYTHON_MAJOR).$(PYTHON_MINOR)/site-packages"
	cp -- arg.py "$(DESTDIR)$(PREFIX)/lib/python$(PYTHON_MAJOR).$(PYTHON_MINOR)/site-packages/"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/lib/python$(PYTHON_MAJOR).$(PYTHON_MINOR)/site-packages/arg.py"

clean:
	-rm -rf -- *.pyc *.pyo __pycache__

.SUFFIXES:

.PHONY: all check install uninstall clean