]> git.ipfire.org Git - people/ms/pakfire.git/blobdiff - Makefile
database: Save installed package size.
[people/ms/pakfire.git] / Makefile
index e9d80ed4867c013c1e89d591789dd3912fbc3048..c873463130d4d63884a985456774a49bae48ba15 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,20 +32,20 @@ install: build
        cp -vf macros/*.macro $(DESTDIR)$(PREFIX)/lib/pakfire/macros
 
        # Install example configuration.
-       -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
-       # Don't overwrite already installed configuration file.
-       [ -e "$(DESTDIR)/etc/pakfire.conf" ] || \
-               cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
-       [ -e "$(DESTDIR)/etc/pakfire-client.conf" ] || \
-               cp -vf examples/pakfire-client.conf $(DESTDIR)/etc/pakfire-client.conf
-       [ -e "$(DESTDIR)/etc/pakfire-daemon.conf" ] || \
-               cp -vf examples/pakfire-daemon.conf $(DESTDIR)/etc/pakfire-daemon.conf
-       cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/
+       -mkdir -pv $(DESTDIR)/etc/pakfire/repos
+       for file in general.conf builder.conf client.conf daemon.conf distros; do \
+               [ -e "$(DESTDIR)/etc/pakfire/$${file}" ] && continue; \
+               cp -rvf examples/$${file} $(DESTDIR)/etc/pakfire/; \
+       done
 
 .PHONY: check
-check:
-       ./runpychecker.sh
+check: all
+       PYTHONPATH=python/src/ pylint -E python/pakfire
 
 .PHONY: po
 po:
        $(MAKE) -C po
+
+.PHONY: pot
+pot:
+       $(MAKE) -C po pot