]>
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 | ||
19 | .PHONY: install | |
15d88336 | 20 | install: po |
abea00b2 MT |
21 | python setup.py install --root $(DESTDIR) |
22 | ||
23 | -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d | |
24 | cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf | |
25 | cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/ | |
ddfb317d MT |
26 | |
27 | .PHONY: check | |
28 | check: | |
29 | ./runpychecker.sh | |
4366c12d MT |
30 | |
31 | .PHONY: po | |
32 | po: | |
df9c4f62 MT |
33 | find pakfire src scripts -name "*.py" -or -name "*.c" -or -name "pakfire" -and -type f | \ |
34 | grep -v "__version__.py" | sort > po/POTFILES.in |