]> git.ipfire.org Git - pakfire.git/blobdiff - Makefile
Update translations.
[pakfire.git] / Makefile
index 2e69c825dc0c2d74bc2ed3fbfbe0b1e09113dbf1..97b3ce0462bb220771dcb37a7e6db4e25562418b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 
 DESTDIR ?= /
 
-all: build
+all: po build
 
 .PHONY: build
 build:
@@ -10,14 +10,26 @@ build:
 .PHONY: clean
 clean:
        python setup.py clean
+       -rm -rfv build
 
 .PHONY: dist
 dist:
        python setup.py sdist
 
+.PHONY: bdist
+bdist:
+       python setup.py bdist
+
 .PHONY: install
-install:
-       python setup.py install  --root $(DESTDIR)
+install: po
+       python setup.py install --root=$(DESTDIR) --prefix=/usr
+
+       # Create script aliases.
+       ln -svf pakfire $(DESTDIR)/usr/bin/pakfire-builder
+       ln -svf pakfire $(DESTDIR)/usr/bin/pakfire-server
+
+       -mkdir -pv $(DESTDIR)/usr/lib/pakfire
+       ln -svf ../../bin/pakfire $(DESTDIR)/usr/lib/pakfire/builder
 
        -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
        cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
@@ -26,3 +38,8 @@ install:
 .PHONY: check
 check:
        ./runpychecker.sh
+
+.PHONY: po
+po:
+       find pakfire src scripts -name "*.py" -or -name "*.c" -or -name "pakfire" -and -type f | \
+               grep -v "__version__.py" | sort > po/POTFILES.in