]> git.ipfire.org Git - pakfire.git/blob - Makefile
Replace copies of main script by symlinks.
[pakfire.git] / Makefile
1
2 DESTDIR ?= /
3
4 all: po build
5
6 .PHONY: build
7 build:
8 python setup.py build
9
10 .PHONY: clean
11 clean:
12 python setup.py clean
13 -rm -rfv build
14
15 .PHONY: dist
16 dist:
17 python setup.py sdist
18
19 .PHONY: bdist
20 bdist:
21 python setup.py bdist
22
23 .PHONY: install
24 install: po
25 python setup.py install --root=$(DESTDIR) --prefix=/usr
26
27 # Create script aliases.
28 ln -svf pakfire $(DESTDIR)/usr/bin/pakfire-builder
29 ln -svf pakfire $(DESTDIR)/usr/bin/pakfire-server
30
31 -mkdir -pv $(DESTDIR)/usr/lib/pakfire
32 ln -svf ../../bin/pakfire $(DESTDIR)/usr/lib/pakfire/builder
33
34 -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
35 cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
36 cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/
37
38 .PHONY: check
39 check:
40 ./runpychecker.sh
41
42 .PHONY: po
43 po:
44 find pakfire src scripts -name "*.py" -or -name "*.c" -or -name "pakfire" -and -type f | \
45 grep -v "__version__.py" | sort > po/POTFILES.in