]> git.ipfire.org Git - pakfire.git/blobdiff - Makefile
Huge change: Introduce pakfire-client and -daemon.
[pakfire.git] / Makefile
index 67e360a0180743836045629b306ce11fd73596e6..e9d80ed4867c013c1e89d591789dd3912fbc3048 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 
 include Makeconfig
 
-SUBDIRS = po python scripts
+SUBDIRS = po python tools tools/fake-environ
 
 all: build
 
@@ -33,9 +33,19 @@ install: build
 
        # Install example configuration.
        -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
-       cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
+       # 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/
 
 .PHONY: check
 check:
        ./runpychecker.sh
+
+.PHONY: po
+po:
+       $(MAKE) -C po