-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
39 lines (27 loc) · 816 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
default: FORCE
@echo "Specify what to build: rpm, deb, test, update-test, install-rpm"
@echo " Usage: make rpm"
FORCE:
clean : FORCE
rm -f petit*.i386.rpm
rm -f petit*.src.rpm
rm -f petit*.deb
rm -f build/rpm/SOURCES/*
rm -f build/rpm/BUILD/*
test : FORCE
(cd test/; time ./test.sh)
update-test : FORCE
(cd test/; ./test.sh update)
rpm : petit*.rpm
petit*.rpm : ./src/bin/* ./src/lib/* ./src/lib/filters/* ./src/lib/fingerprints/* ./src/lib/fingerprint_library/*
./build/scripts/rpm.sh
deb : petit*.deb
petit*.deb : ./src/bin/* ./src/lib/* ./src/lib/filters/* ./src/lib/fingerprints/* ./src/lib/fingerprint_library/*
./build/scripts/deb.sh
install : FORCE
./build/scripts/tar-install.sh
uninstall : FORCE
./build/scripts/tar-uninstall.sh
install-rpm : rpm
rpm -e petit
rpm -ivh petit*.rpm