forked from csirtgadgets/cif-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
72 lines (50 loc) · 1.27 KB
/
Makefile.am
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
SUBDIRS = libcif libcif-dbi cif-router cif-smrt
EXTRA_DIST = sbin
ME=cif-v1
BUILD=$(shell git describe --tags)
SNAPSHOT=$(ME)-$(BUILD)
all: default
default:
$(PERL) libcif/sbin/gen_protocol_bindings.pl
fixperms:
chmod 0755 $(prefix)
chown -R $(CIF_USER) $(prefix)
chgrp -R $(CIF_GROUP) $(prefix)
install: files-install fixperms
files-install: libcif-install libcif-dbi-install cif-router-install cif-smrt-install
libcif-install:
-( cd libcif && make install )
libcif-dbi-install:
-( cd libcif-dbi && make install )
purgedb:
-( cd libcif-dbi && make purgedb )
initdb:
-( cd libcif-dbi && make initdb && make tables)
tables:
-( cd libcif-dbi && make tables )
rebuilddb:
-( cd libcif-dbi && make rebuilddb )
upgradedb:
-( cd libcif-dbi && make upgradedb )
cif-router-install:
-( cd cif-router && make install )
cif-smrt-install:
-( cd cif-smrt && make install )
depends: fixdeps
fixdeps:
$(PERL) ./sbin/test-dependencies --verbose --install --prefix $(prefix)
testdeps:
$(PERL) ./sbin/test-dependencies --verbose --prefix $(prefix)
clean:
rm Makefile
rm config.log
rm config.status
realclean:
clean
rm Makefile.in
rm configure
rm aclocal.m4
reconf:
autoreconf -vf
snapshot:
git archive --format=tar --prefix=$(BUILD)/ $(BUILD) | gzip > $(SNAPSHOT).tar.gz