]> git.ipfire.org Git - pakfire.git/blame - Makefile
macros: Move make_*_targets into build section.
[pakfire.git] / Makefile
CommitLineData
abea00b2
MT
1
2DESTDIR ?= /
3
4366c12d 4all: po build
abea00b2
MT
5
6.PHONY: build
7build:
8 python setup.py build
9
10.PHONY: clean
11clean:
12 python setup.py clean
c605d735 13 -rm -rfv build
abea00b2
MT
14
15.PHONY: dist
16dist:
17 python setup.py sdist
18
19.PHONY: install
15d88336 20install: po
fabbd622 21 python setup.py install --root=$(DESTDIR) --prefix=/usr
abea00b2
MT
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
28check:
29 ./runpychecker.sh
4366c12d
MT
30
31.PHONY: po
32po:
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