]> git.ipfire.org Git - people/ms/pakfire.git/blame - Makefile
Mount /tmp as a tmpfs into the build environment.
[people/ms/pakfire.git] / Makefile
CommitLineData
abea00b2 1
a1388014 2include Makeconfig
abea00b2 3
44dc5e4e 4SUBDIRS = po python tools tools/fake-environ
a1388014
MT
5
6all: build
abea00b2
MT
7
8.PHONY: build
9build:
a1388014
MT
10 for dir in $(SUBDIRS); do \
11 $(MAKE) -C $${dir} || exit; \
12 done
abea00b2
MT
13
14.PHONY: clean
15clean:
a1388014
MT
16 for dir in $(SUBDIRS); do \
17 $(MAKE) -C $${dir} clean || exit; \
18 done
abea00b2
MT
19
20.PHONY: dist
21dist:
a1388014
MT
22 git archive --format=tar --prefix=$(PACKAGE_NAME)-$(PACKAGE_VERSION)/ HEAD | \
23 gzip -9 > $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz
9b875540 24
abea00b2 25.PHONY: install
7e5f0622 26install: build
a1388014
MT
27 for dir in $(SUBDIRS); do \
28 $(MAKE) -C $${dir} install || exit; \
29 done
abea00b2 30
0f3048cf
MT
31 -mkdir -pv $(DESTDIR)$(PREFIX)/lib/pakfire/macros
32 cp -vf macros/*.macro $(DESTDIR)$(PREFIX)/lib/pakfire/macros
9b875540 33
a1388014 34 # Install example configuration.
2b40137a
MT
35 -mkdir -pv $(DESTDIR)/etc/pakfire/repos
36 for file in general.conf builder.conf client.conf daemon.conf distros; do \
a6bd96bc
MT
37 [ -e "$(DESTDIR)/etc/pakfire/$${file}" ] && continue; \
38 cp -rvf examples/$${file} $(DESTDIR)/etc/pakfire/; \
39 done
ddfb317d
MT
40
41.PHONY: check
b09a8e63
MT
42check: all
43 PYTHONPATH=python/src/ pylint -E python/pakfire
f8f8144c
MT
44
45.PHONY: po
46po:
47 $(MAKE) -C po
273abbbc
MT
48
49.PHONY: pot
50pot:
51 $(MAKE) -C po pot