-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
executable file
·172 lines (136 loc) · 7.24 KB
/
Makefile.in
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#
# Version $Id: Makefile.in 8835 2009-05-16 14:25:36Z kerns $
# Master Makefile
#
@MCOMMON@
srcdir = @srcdir@
VPATH = @srcdir@
.PATH: @srcdir@
topdir = .
thisdir = .
first_rule: all
dummy:
# --client-only directories
fd_subdirs = src
# Non-client-only directores
subdirs = src/cats src/tools
all_subdirs = ${fd_subdirs} manpages
DIST = INSTALL README.configure configure Makefile Makefile.in ChangeLog
DIST_CFG = autoconf/aclocal.m4 autoconf/configure.in \
autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \
autoconf/install-sh autoconf/mkinstalldirs
doc_files = VERIFYING technotes ChangeLog README ReleaseNotes LICENSE \
INSTALL
MKDIR = $(srcdir)/autoconf/mkinstalldirs
LIBTOOL_DEPS = @LIBTOOL_DEPS@
#-------------------------------------------------------------------------
all: Makefile
@for I in ${all_subdirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; \
$(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
echo ""; echo "";)); \
done
depend:
@for I in ${all_subdirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
burp: Makefile
@for I in ${fd_subdirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; \
$(MAKE) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======; \
echo ""; echo "";)); \
done
#-------------------------------------------------------------------------
autoconf/aclocal.m4: autoconf/configure.in autoconf/burp-macros/* autoconf/gettext-macros/* autoconf/libtool/*
# Note, the following is needed in the above if ever any new macro is added.
# However, at the current time, the -I libtool causes the autoconf/aclocal.m4
# get messed up, so this is commented out
# cd autoconf && aclocal -I burp-macros -I gettext-macros -I libtool
configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
cd $(srcdir);
${RMF} config.cache config.log config.out config.status src/config.h
${RMF} -r autoconf/autom4te.cache autom4te.cache
autoconf --prepend-include=$(srcdir)/autoconf \
autoconf/configure.in > configure
chmod 755 configure
${RMF} -r autoconf/autom4te.cache autom4te.cache
config.status:
if test -x config.status; then config.status --recheck; \
else $(SHELL) configure; fi
autoconf/config.h.in: autoconf/configure.in autoconf/acconfig.h
cd $(srcdir);
${RMF} config.cache config.log config.out config.status src/config.h
autoheader --prepend-include=$(srcdir)/autoconf \
autoconf/configure.in > autoconf/config.h.in
chmod 644 autoconf/config.h.in
libtool: Makefile $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
installdirs:
$(MKDIR) $(DESTDIR)$(sbindir)
$(MKDIR) $(DESTDIR)$(sysconfdir)
$(MKDIR) $(DESTDIR)$(sysconfdir)/CA-client
$(MKDIR) $(DESTDIR)/var/run
$(MKDIR) $(DESTDIR)/var/spool/burp
@if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir ; cp configs/server/clientconfdir/testclient $(DESTDIR)$(sysconfdir)/clientconfdir/testclient ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ; cp configs/server/clientconfdir/incexc $(DESTDIR)$(sysconfdir)/clientconfdir/incexc/example ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/client ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/client ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/server ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/server ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/server/win32 ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/server/win32 ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/server/win32/$(VERSION) ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/server/win32/$(VERSION) ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/server/win64 ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/server/win64 ; fi
@if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/server/win64/$(VERSION) ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/server/win64/$(VERSION) ; fi
gnomedirs:
$(MKDIR) $(DESTDIR)/usr/share/pixmaps
$(MKDIR) $(DESTDIR)/usr/share/gnome/apps/System
$(MKDIR) $(DESTDIR)/usr/share/applications
$(MKDIR) $(DESTDIR)/etc/security/console.apps
$(MKDIR) $(DESTDIR)/etc/pam.d
installation: install
install: installdirs
@for I in $(all_subdirs); do (cd $$I && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
@if [ ! -f $(DESTDIR)$(sysconfdir)/burp-server.conf ] ; then cp configs/server/burp.conf $(DESTDIR)$(sysconfdir)/burp-server.conf ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/burp.conf ] ; then cp configs/client/burp.conf $(DESTDIR)$(sysconfdir)/burp.conf ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/notify_script ] ; then cp configs/server/notify_script $(DESTDIR)$(sysconfdir)/notify_script && chmod 755 $(DESTDIR)$(sysconfdir)/notify_script ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/ssl_extra_checks_script ] ; then cp configs/server/ssl_extra_checks_script $(DESTDIR)$(sysconfdir)/ssl_extra_checks_script && chmod 755 $(DESTDIR)$(sysconfdir)/ssl_extra_checks_script ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/summary_script ] ; then cp configs/server/summary_script $(DESTDIR)$(sysconfdir)/summary_script && chmod 755 $(DESTDIR)$(sysconfdir)/summary_script ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/timer_script ] ; then cp configs/server/timer_script $(DESTDIR)$(sysconfdir)/timer_script && chmod 755 $(DESTDIR)$(sysconfdir)/timer_script ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/autoupgrade/server/win32/script ] ; then cp configs/server/autoupgrade/windows.script $(DESTDIR)$(sysconfdir)/autoupgrade/server/win32/script ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/autoupgrade/server/win64/script ] ; then cp configs/server/autoupgrade/windows.script $(DESTDIR)$(sysconfdir)/autoupgrade/server/win64/script ; fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/CA.cnf ] ; then cp configs/certs/CA/CA.cnf $(DESTDIR)$(sysconfdir)/CA.cnf ; fi
cp configs/certs/CA/burp_ca $(DESTDIR)$(sbindir) && chmod 755 $(DESTDIR)$(sbindir)/burp_ca
Makefile: Makefile.in
cd $(topdir) \
&& CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Makefiles:
$(SHELL) config.status
clean:
@for I in ${all_subdirs} test ; \
do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
@cd src/win32 && ${MAKE} $@
@$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
@$(RMF) config.log config.out config.status libtool
@$(RMF) -r autoconf/autom4te.cache autoconf/Make.common
@$(RMF) burp-cross-tools
@$(RMF) burp-depkgs
@$(RMF) Makefile
@$(RMF) website/html/*.html
@$(RMF) website/html/*.html
@$(RMF) -r website/html/about
@$(RMF) -r website/html/faq
@$(RMF) -r website/html/txt
@find . -name ".#*" -exec $(RMF) {} \;
distrib: configure autoconf/config.h.in
.PHONY: test
test:
cd test && ${MAKE} $@
tar.gz: ../$(VERNAME).tar.gz
../$(VERNAME).tar.gz:
(cd ..; tar cvf - $(VERNAME) | gzip -f9 > $(VERNAME).tar.gz)
tar.Z: ../$(VERNAME).tar.Z
../$(VERNAME).tar.Z:
(cd ..; tar cvf - $(VERNAME) | compress > $(VERNAME).tar.Z)
tar.bz2: ../$(VERNAME).tar.bz2
../$(VERNAME).tar.bz2:
(cd ..; tar cvf - $(VERNAME) | bzip2 -f9 > $(VERNAME).tar.bz2)
uuencode: tar.gz
uuencode ../$(VERNAME).tar.gz $(VERNAME).tar.gz > ../$(VERNAME).tgz.uu
# ------------------------------------------------------------------------