]>
Commit | Line | Data |
---|---|---|
abea00b2 MT |
1 | |
2 | DESTDIR ?= / | |
3 | ||
4366c12d | 4 | all: po build |
abea00b2 MT |
5 | |
6 | .PHONY: build | |
7 | build: | |
8 | python setup.py build | |
9 | ||
10 | .PHONY: clean | |
11 | clean: | |
12 | python setup.py clean | |
c605d735 | 13 | -rm -rfv build |
abea00b2 MT |
14 | |
15 | .PHONY: dist | |
16 | dist: | |
17 | python setup.py sdist | |
18 | ||
9b875540 MT |
19 | .PHONY: bdist |
20 | bdist: | |
21 | python setup.py bdist | |
22 | ||
abea00b2 | 23 | .PHONY: install |
15d88336 | 24 | install: po |
fabbd622 | 25 | python setup.py install --root=$(DESTDIR) --prefix=/usr |
abea00b2 | 26 | |
9b875540 MT |
27 | -mkdir -pv $(DESTDIR)/usr/lib/pakfire |
28 | ln -svf ../../bin/pakfire $(DESTDIR)/usr/lib/pakfire/builder | |
29 | ||
abea00b2 MT |
30 | -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d |
31 | cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf | |
32 | cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/ | |
ddfb317d MT |
33 | |
34 | .PHONY: check | |
35 | check: | |
36 | ./runpychecker.sh | |
4366c12d MT |
37 | |
38 | .PHONY: po | |
39 | po: | |
df9c4f62 MT |
40 | find pakfire src scripts -name "*.py" -or -name "*.c" -or -name "pakfire" -and -type f | \ |
41 | grep -v "__version__.py" | sort > po/POTFILES.in |