]> git.ipfire.org Git - pakfire.git/blob - Makefile
Remove pylizlzma module that was replaced by our own one.
[pakfire.git] / Makefile
1
2 include Makeconfig
3
4 SUBDIRS = po python tools tools/fake-environ
5
6 all: build
7
8 .PHONY: build
9 build:
10 for dir in $(SUBDIRS); do \
11 $(MAKE) -C $${dir} || exit; \
12 done
13
14 .PHONY: clean
15 clean:
16 for dir in $(SUBDIRS); do \
17 $(MAKE) -C $${dir} clean || exit; \
18 done
19
20 .PHONY: dist
21 dist:
22 git archive --format=tar --prefix=$(PACKAGE_NAME)-$(PACKAGE_VERSION)/ HEAD | \
23 gzip -9 > $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
24
25 .PHONY: install
26 install: build
27 for dir in $(SUBDIRS); do \
28 $(MAKE) -C $${dir} install || exit; \
29 done
30
31 -mkdir -pv $(DESTDIR)$(PREFIX)/lib/pakfire/macros
32 cp -vf macros/*.macro $(DESTDIR)$(PREFIX)/lib/pakfire/macros
33
34 # Install example configuration.
35 -mkdir -pv $(DESTDIR)/etc/pakfire.repos.d
36 # Don't overwrite already installed configuration file.
37 [ -e "$(DESTDIR)/etc/pakfire.conf" ] || \
38 cp -vf examples/pakfire.conf $(DESTDIR)/etc/pakfire.conf
39 cp -vf examples/pakfire.repos.d/* $(DESTDIR)/etc/pakfire.repos.d/
40
41 .PHONY: check
42 check:
43 ./runpychecker.sh
44
45 .PHONY: po
46 po:
47 $(MAKE) -C po