]>
Commit | Line | Data |
---|---|---|
abea00b2 | 1 | |
a1388014 | 2 | include Makeconfig |
abea00b2 | 3 | |
44dc5e4e | 4 | SUBDIRS = po python tools tools/fake-environ |
a1388014 MT |
5 | |
6 | all: build | |
abea00b2 MT |
7 | |
8 | .PHONY: build | |
9 | build: | |
a1388014 MT |
10 | for dir in $(SUBDIRS); do \ |
11 | $(MAKE) -C $${dir} || exit; \ | |
12 | done | |
abea00b2 MT |
13 | |
14 | .PHONY: clean | |
15 | clean: | |
a1388014 MT |
16 | for dir in $(SUBDIRS); do \ |
17 | $(MAKE) -C $${dir} clean || exit; \ | |
18 | done | |
abea00b2 MT |
19 | |
20 | .PHONY: dist | |
21 | dist: | |
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 | 26 | install: 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. |
a6bd96bc MT |
35 | -mkdir -pv $(DESTDIR)/etc/pakfire |
36 | for file in general.conf builder.conf client.conf daemon.conf distros repos; do \ | |
37 | [ -e "$(DESTDIR)/etc/pakfire/$${file}" ] && continue; \ | |
38 | cp -rvf examples/$${file} $(DESTDIR)/etc/pakfire/; \ | |
39 | done | |
ddfb317d MT |
40 | |
41 | .PHONY: check | |
42 | check: | |
43 | ./runpychecker.sh | |
f8f8144c MT |
44 | |
45 | .PHONY: po | |
46 | po: | |
47 | $(MAKE) -C po |