]> git.ipfire.org Git - pakfire.git/blame - tools/Makefile
Cleanup database and add indexes.
[pakfire.git] / tools / Makefile
CommitLineData
a1388014
MT
1
2include ../Makeconfig
3
3ce6a8ad
MT
4# Elfutils
5LIBS_ELF = -lelf
6
7# Beecrypt
8LIBS_BEECRYPT = -lbeecrypt -lgomp
9
10# popt
11LIBS_POPT = -lpopt
12
a1388014 13SCRIPTS = $(SCRIPTS_BIN) $(SCRIPTS_SHELL)
3ce6a8ad
MT
14SCRIPTS_BIN = \
15 debugedit
16
a1388014
MT
17SCRIPTS_SHELL = \
18 chroot-shell \
19 cleanup \
1b51609b 20 compress-man-pages \
3ce6a8ad 21 extract-debuginfo \
63029754 22 find-common \
08e95360 23 find-prerequires \
63029754
MT
24 find-provides \
25 find-requires \
a1388014 26 pakfire-multicall.py \
49e0e073 27 patch \
a1388014
MT
28 py-compile \
29 quality-agent \
87745c01 30 remove-static-libs \
a1388014
MT
31 $(wildcard functions-*) \
32 $(wildcard *.prov) \
33 $(wildcard *.req)
34
35.PHONY: all
36all: $(SCRIPTS)
37
3ce6a8ad
MT
38%.o: %.c Makefile
39 $(CC) $(CFLAGS) -I. -o $@ -c $<
40
41debugedit: debugedit.o hashtab.o
c9ede3cb 42 $(CC) $(CFLAGS) -o $@ $^ $(LIBS_BEECRYPT) $(LIBS_ELF) $(LIBS_POPT)
3ce6a8ad 43
a1388014
MT
44.PHONY: install
45install: $(SCRIPTS)
46 -mkdir -pv $(DESTDIR)$(SCRIPT_DIR)
47 for file in $^; do \
48 cp -vrf $${file} $(DESTDIR)$(SCRIPT_DIR)/ || exit; \
49 done
50
51 # Create script aliases.
52 -mkdir -pv $(DESTDIR)/usr/bin
53 ln -svf ../..$(SCRIPT_DIR)/pakfire-multicall.py $(DESTDIR)/usr/bin/pakfire
54 ln -svf ../..$(SCRIPT_DIR)/pakfire-multicall.py $(DESTDIR)/usr/bin/pakfire-builder
c62d93f1
MT
55 ln -svf ../..$(SCRIPT_DIR)/pakfire-multicall.py $(DESTDIR)/usr/bin/pakfire-client
56 ln -svf ../..$(SCRIPT_DIR)/pakfire-multicall.py $(DESTDIR)/usr/bin/pakfire-daemon
68c0e769 57 ln -svf ../..$(SCRIPT_DIR)/pakfire-multicall.py $(DESTDIR)/usr/bin/pakfire-key
a1388014
MT
58 ln -svf ../..$(SCRIPT_DIR)/pakfire-multicall.py $(DESTDIR)/usr/bin/pakfire-server
59 ln -svf pakfire-multicall.py $(DESTDIR)$(SCRIPT_DIR)/builder
60
61 # Install QA.
62 -mkdir -pv $(DESTDIR)/usr/lib/quality-agent
63 cp -vf quality-agent.d/* $(DESTDIR)/usr/lib/quality-agent
64
65.PHONY: clean
66clean:
67 : # Nothing yet to do