]> git.ipfire.org Git - pakfire.git/blobdiff - Makefile
Explicitely add hardening CFLAGS.
[pakfire.git] / Makefile
index eb308d93cd18520a590b5a49e8b619f7161041ce..581332ceed5ec28f7a5c7a7275c2a6c816d969e1 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
 
@@ -23,19 +23,29 @@ dist:
                gzip -9 > $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
 
 .PHONY: install
-install:
+install: build
        for dir in $(SUBDIRS); do \
                $(MAKE) -C $${dir} install || exit; \
        done
 
-       -mkdir -pv $(DESTDIR)/usr/lib/pakfire/macros
-       cp -vf macros/*.macro $(DESTDIR)/usr/lib/pakfire/macros
+       -mkdir -pv $(DESTDIR)$(PREFIX)/lib/pakfire/macros
+       cp -vf macros/*.macro $(DESTDIR)$(PREFIX)/lib/pakfire/macros
 
        # Install example configuration.
-       -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
-       cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.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
+
+.PHONY: po
+po:
+       $(MAKE) -C po
+
+.PHONY: pot
+pot:
+       $(MAKE) -C po pot