]> git.ipfire.org Git - people/ms/pakfire.git/blame_incremental - Makefile
Mount /tmp as a tmpfs into the build environment.
[people/ms/pakfire.git] / Makefile
... / ...
CommitLineData
1
2include Makeconfig
3
4SUBDIRS = po python tools tools/fake-environ
5
6all: build
7
8.PHONY: build
9build:
10 for dir in $(SUBDIRS); do \
11 $(MAKE) -C $${dir} || exit; \
12 done
13
14.PHONY: clean
15clean:
16 for dir in $(SUBDIRS); do \
17 $(MAKE) -C $${dir} clean || exit; \
18 done
19
20.PHONY: dist
21dist:
22 git archive --format=tar --prefix=$(PACKAGE_NAME)-$(PACKAGE_VERSION)/ HEAD | \
23 gzip -9 > $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
24
25.PHONY: install
26install: 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
36 for file in general.conf builder.conf client.conf daemon.conf distros; do \
37 [ -e "$(DESTDIR)/etc/pakfire/$${file}" ] && continue; \
38 cp -rvf examples/$${file} $(DESTDIR)/etc/pakfire/; \
39 done
40
41.PHONY: check
42check: all
43 PYTHONPATH=python/src/ pylint -E python/pakfire
44
45.PHONY: po
46po:
47 $(MAKE) -C po
48
49.PHONY: pot
50pot:
51 $(MAKE) -C po pot