aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in315
1 files changed, 169 insertions, 146 deletions
diff --git a/Makefile.in b/Makefile.in
index 16f8e8717..8251f9882 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,6 +1,8 @@
1all: apps firejail.1 firemon.1 firecfg.1 firejail-profile.5 firejail-login.5 firejail-config.5 1all: apps man filters
2MYLIBS = src/lib 2MYLIBS = src/lib
3APPS = src/firejail src/firemon src/firecfg src/libtrace src/libtracelog src/ftee 3APPS = src/firejail src/firemon src/firecfg src/libtrace src/libtracelog src/ftee src/faudit src/libconnect src/fnet src/fseccomp src/fcopy
4MANPAGES = firejail.1 firemon.1 firecfg.1 firejail-profile.5 firejail-login.5
5SECCOMP_FILTERS = seccomp seccomp.i386 seccomp.amd64
4 6
5prefix=@prefix@ 7prefix=@prefix@
6exec_prefix=@exec_prefix@ 8exec_prefix=@exec_prefix@
@@ -14,47 +16,55 @@ VERSION=@PACKAGE_VERSION@
14NAME=@PACKAGE_NAME@ 16NAME=@PACKAGE_NAME@
15PACKAGE_TARNAME=@PACKAGE_TARNAME@ 17PACKAGE_TARNAME=@PACKAGE_TARNAME@
16DOCDIR=@docdir@ 18DOCDIR=@docdir@
19HAVE_APPARMOR=@HAVE_APPARMOR@
20BUSYBOX_WORKAROUND=@BUSYBOX_WORKAROUND@
21
22uids.h:; ./mkuid.sh
17 23
18.PHONY: mylibs $(MYLIBS) 24.PHONY: mylibs $(MYLIBS)
19mylibs: $(MYLIBS) 25mylibs: $(MYLIBS) uids.h
20$(MYLIBS): 26$(MYLIBS):
21 $(MAKE) -C $@ 27 $(MAKE) -C $@
22 28
23.PHONY: apps $(APPS) 29.PHONY: apps $(APPS)
24apps: $(APPS) 30apps: $(APPS)
25$(APPS): $(MYLIBS) 31$(APPS): $(MYLIBS) uids.h
26 $(MAKE) -C $@ 32 $(MAKE) -C $@
27 33
28firemon.1: src/man/firemon.txt 34$(MANPAGES): $(wildcard src/man/*.txt)
29 ./mkman.sh $(VERSION) src/man/firemon.txt firemon.1 35 ./mkman.sh $(VERSION) src/man/$(basename $@).txt $@
30firejail.1: src/man/firejail.txt 36
31 ./mkman.sh $(VERSION) src/man/firejail.txt firejail.1 37man: $(MANPAGES)
32firecfg.1: src/man/firecfg.txt 38
33 ./mkman.sh $(VERSION) src/man/firecfg.txt firecfg.1 39filters: src/fseccomp
34firejail-profile.5: src/man/firejail-profile.txt 40 src/fseccomp/fseccomp default seccomp
35 ./mkman.sh $(VERSION) src/man/firejail-profile.txt firejail-profile.5 41 src/fseccomp/fseccomp default seccomp.debug allow-debuggers
36firejail-login.5: src/man/firejail-login.txt 42 src/fseccomp/fseccomp secondary 32 seccomp.i386
37 ./mkman.sh $(VERSION) src/man/firejail-login.txt firejail-login.5 43 src/fseccomp/fseccomp secondary 64 seccomp.amd64
38firejail-config.5: src/man/firejail-config.txt
39 ./mkman.sh $(VERSION) src/man/firejail-config.txt firejail-config.5
40 44
41clean: 45clean:
42 for dir in $(APPS); do \ 46 for dir in $(APPS) $(MYLIBS); do \
43 $(MAKE) -C $$dir clean; \
44 done
45 for dir in $(MYLIBS); do \
46 $(MAKE) -C $$dir clean; \ 47 $(MAKE) -C $$dir clean; \
47 done 48 done
48 rm -f firejail.1 firejail.1.gz firemon.1 firemon.1.gz firecfg.1 firecfg.gz firejail-profile.5 firejail-profile.5.gz firejail-login.5 firejail-login.5.gz firejail-config.5 firejail-config.5.gz firejail*.rpm 49 rm -f $(MANPAGES) $(MANPAGES:%=%.gz) firejail*.rpm
50 rm -f seccomp seccomp.debug seccomp.i386 seccomp.amd64
51 rm -f test/utils/index.html*
52 rm -f test/utils/wget-log
53 rm -f test/utils/lstesting
54 rm -f test/environment/index.html*
55 rm -f test/environment/wget-log*
56 rm -fr test/environment/-testdir
57 rm -f test/environment/logfile*
58 rm -f test/environment/index.html
59 rm -f test/environment/wget-log
60 rm -f test/sysutils/firejail_t*
61 cd test/compile; ./compile.sh --clean; cd ../..
49 62
50distclean: clean 63distclean: clean
51 for dir in $(APPS); do \ 64 for dir in $(APPS) $(MYLIBS); do \
52 $(MAKE) -C $$dir distclean; \ 65 $(MAKE) -C $$dir distclean; \
53 done 66 done
54 for dir in $(MYLIBS); do \ 67 rm -fr Makefile autom4te.cache config.log config.status config.h uids.h
55 $(MAKE) -C $$dir distclean; \
56 done
57 rm -fr Makefile autom4te.cache config.log config.status config.h
58 68
59realinstall: 69realinstall:
60 # firejail executable 70 # firejail executable
@@ -69,133 +79,54 @@ realinstall:
69 install -m 0755 -d $(DESTDIR)/$(libdir)/firejail 79 install -m 0755 -d $(DESTDIR)/$(libdir)/firejail
70 install -c -m 0644 src/libtrace/libtrace.so $(DESTDIR)/$(libdir)/firejail/. 80 install -c -m 0644 src/libtrace/libtrace.so $(DESTDIR)/$(libdir)/firejail/.
71 install -c -m 0644 src/libtracelog/libtracelog.so $(DESTDIR)/$(libdir)/firejail/. 81 install -c -m 0644 src/libtracelog/libtracelog.so $(DESTDIR)/$(libdir)/firejail/.
82 install -c -m 0644 src/libconnect/libconnect.so $(DESTDIR)/$(libdir)/firejail/.
72 install -c -m 0755 src/ftee/ftee $(DESTDIR)/$(libdir)/firejail/. 83 install -c -m 0755 src/ftee/ftee $(DESTDIR)/$(libdir)/firejail/.
73 install -c -m 0755 src/fshaper/fshaper.sh $(DESTDIR)/$(libdir)/firejail/. 84 install -c -m 0755 src/fshaper/fshaper.sh $(DESTDIR)/$(libdir)/firejail/.
74 install -c -m 0644 src/firecfg/firecfg.config $(DESTDIR)/$(libdir)/firejail/. 85 install -c -m 0644 src/firecfg/firecfg.config $(DESTDIR)/$(libdir)/firejail/.
86 install -c -m 0755 src/faudit/faudit $(DESTDIR)/$(libdir)/firejail/.
87 install -c -m 0755 src/fnet/fnet $(DESTDIR)/$(libdir)/firejail/.
88 install -c -m 0755 src/fseccomp/fseccomp $(DESTDIR)/$(libdir)/firejail/.
89 install -c -m 0755 src/fcopy/fcopy $(DESTDIR)/$(libdir)/firejail/.
90 install -c -m 0644 seccomp $(DESTDIR)/$(libdir)/firejail/.
91 install -c -m 0644 seccomp.debug $(DESTDIR)/$(libdir)/firejail/.
92 install -c -m 0644 seccomp.i386 $(DESTDIR)/$(libdir)/firejail/.
93 install -c -m 0644 seccomp.amd64 $(DESTDIR)/$(libdir)/firejail/.
75 # documents 94 # documents
76 install -m 0755 -d $(DESTDIR)/$(DOCDIR) 95 install -m 0755 -d $(DESTDIR)/$(DOCDIR)
77 install -c -m 0644 COPYING $(DESTDIR)/$(DOCDIR)/. 96 install -c -m 0644 COPYING $(DESTDIR)/$(DOCDIR)/.
78 install -c -m 0644 README $(DESTDIR)/$(DOCDIR)/. 97 install -c -m 0644 README $(DESTDIR)/$(DOCDIR)/.
79 install -c -m 0644 RELNOTES $(DESTDIR)/$(DOCDIR)/. 98 install -c -m 0644 RELNOTES $(DESTDIR)/$(DOCDIR)/.
80 # etc files 99 # etc files
81 ./mketc.sh $(sysconfdir) 100 ./mketc.sh $(sysconfdir) $(BUSYBOX_WORKAROUND)
82 install -m 0755 -d $(DESTDIR)/$(sysconfdir)/firejail 101 install -m 0755 -d $(DESTDIR)/$(sysconfdir)/firejail
83 install -c -m 0644 .etc/audacious.profile $(DESTDIR)/$(sysconfdir)/firejail/. 102 for file in .etc/* etc/firejail.config; do \
84 install -c -m 0644 .etc/clementine.profile $(DESTDIR)/$(sysconfdir)/firejail/. 103 install -c -m 0644 $$file $(DESTDIR)/$(sysconfdir)/firejail; \
85 install -c -m 0644 .etc/epiphany.profile $(DESTDIR)/$(sysconfdir)/firejail/. 104 done
86 install -c -m 0644 .etc/qtox.profile $(DESTDIR)/$(sysconfdir)/firejail/.
87 install -c -m 0644 .etc/polari.profile $(DESTDIR)/$(sysconfdir)/firejail/.
88 install -c -m 0644 .etc/gnome-mplayer.profile $(DESTDIR)/$(sysconfdir)/firejail/.
89 install -c -m 0644 .etc/rhythmbox.profile $(DESTDIR)/$(sysconfdir)/firejail/.
90 install -c -m 0644 .etc/totem.profile $(DESTDIR)/$(sysconfdir)/firejail/.
91 install -c -m 0644 .etc/firefox.profile $(DESTDIR)/$(sysconfdir)/firejail/.
92 install -c -m 0644 .etc/icedove.profile $(DESTDIR)/$(sysconfdir)/firejail/.
93 install -c -m 0644 .etc/iceweasel.profile $(DESTDIR)/$(sysconfdir)/firejail/.
94 install -c -m 0644 .etc/midori.profile $(DESTDIR)/$(sysconfdir)/firejail/.
95 install -c -m 0644 .etc/evince.profile $(DESTDIR)/$(sysconfdir)/firejail/.
96 install -c -m 0644 .etc/chromium-browser.profile $(DESTDIR)/$(sysconfdir)/firejail/.
97 install -c -m 0644 .etc/chromium.profile $(DESTDIR)/$(sysconfdir)/firejail/.
98 install -c -m 0644 .etc/google-chrome.profile $(DESTDIR)/$(sysconfdir)/firejail/.
99 install -c -m 0644 .etc/google-chrome-stable.profile $(DESTDIR)/$(sysconfdir)/firejail/.
100 install -c -m 0644 .etc/google-chrome-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/.
101 install -c -m 0644 .etc/google-chrome-unstable.profile $(DESTDIR)/$(sysconfdir)/firejail/.
102 install -c -m 0644 .etc/disable-common.inc $(DESTDIR)/$(sysconfdir)/firejail/.
103 install -c -m 0644 .etc/dropbox.profile $(DESTDIR)/$(sysconfdir)/firejail/.
104 install -c -m 0644 .etc/opera.profile $(DESTDIR)/$(sysconfdir)/firejail/.
105 install -c -m 0644 .etc/opera-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/.
106 install -c -m 0644 .etc/thunderbird.profile $(DESTDIR)/$(sysconfdir)/firejail/.
107 install -c -m 0644 .etc/transmission-gtk.profile $(DESTDIR)/$(sysconfdir)/firejail/.
108 install -c -m 0644 .etc/transmission-qt.profile $(DESTDIR)/$(sysconfdir)/firejail/.
109 install -c -m 0644 .etc/vlc.profile $(DESTDIR)/$(sysconfdir)/firejail/.
110 install -c -m 0644 .etc/deluge.profile $(DESTDIR)/$(sysconfdir)/firejail/.
111 install -c -m 0644 .etc/qbittorrent.profile $(DESTDIR)/$(sysconfdir)/firejail/.
112 install -c -m 0644 .etc/generic.profile $(DESTDIR)/$(sysconfdir)/firejail/.
113 install -c -m 0644 .etc/pidgin.profile $(DESTDIR)/$(sysconfdir)/firejail/.
114 install -c -m 0644 .etc/xchat.profile $(DESTDIR)/$(sysconfdir)/firejail/.
115 install -c -m 0644 .etc/empathy.profile $(DESTDIR)/$(sysconfdir)/firejail/.
116 install -c -m 0644 .etc/server.profile $(DESTDIR)/$(sysconfdir)/firejail/.
117 install -c -m 0644 .etc/icecat.profile $(DESTDIR)/$(sysconfdir)/firejail/.
118 install -c -m 0644 .etc/quassel.profile $(DESTDIR)/$(sysconfdir)/firejail/.
119 install -c -m 0644 .etc/deadbeef.profile $(DESTDIR)/$(sysconfdir)/firejail/.
120 install -c -m 0644 .etc/filezilla.profile $(DESTDIR)/$(sysconfdir)/firejail/.
121 install -c -m 0644 .etc/fbreader.profile $(DESTDIR)/$(sysconfdir)/firejail/.
122 install -c -m 0644 .etc/spotify.profile $(DESTDIR)/$(sysconfdir)/firejail/.
123 install -c -m 0644 .etc/steam.profile $(DESTDIR)/$(sysconfdir)/firejail/.
124 install -c -m 0644 .etc/skype.profile $(DESTDIR)/$(sysconfdir)/firejail/.
125 install -c -m 0644 .etc/wine.profile $(DESTDIR)/$(sysconfdir)/firejail/.
126 install -c -m 0644 .etc/disable-devel.inc $(DESTDIR)/$(sysconfdir)/firejail/.
127 install -c -m 0644 .etc/conkeror.profile $(DESTDIR)/$(sysconfdir)/firejail/.
128 install -c -m 0644 .etc/unbound.profile $(DESTDIR)/$(sysconfdir)/firejail/.
129 install -c -m 0644 .etc/dnscrypt-proxy.profile $(DESTDIR)/$(sysconfdir)/firejail/.
130 install -c -m 0644 .etc/whitelist-common.inc $(DESTDIR)/$(sysconfdir)/firejail/.
131 install -c -m 0644 .etc/nolocal.net $(DESTDIR)/$(sysconfdir)/firejail/.
132 install -c -m 0644 .etc/webserver.net $(DESTDIR)/$(sysconfdir)/firejail/.
133 install -c -m 0644 .etc/bitlbee.profile $(DESTDIR)/$(sysconfdir)/firejail/.
134 install -c -m 0644 .etc/weechat.profile $(DESTDIR)/$(sysconfdir)/firejail/.
135 install -c -m 0644 .etc/weechat-curses.profile $(DESTDIR)/$(sysconfdir)/firejail/.
136 install -c -m 0644 .etc/hexchat.profile $(DESTDIR)/$(sysconfdir)/firejail/.
137 install -c -m 0644 .etc/rtorrent.profile $(DESTDIR)/$(sysconfdir)/firejail/.
138 install -c -m 0644 .etc/parole.profile $(DESTDIR)/$(sysconfdir)/firejail/.
139 install -c -m 0644 .etc/kmail.profile $(DESTDIR)/$(sysconfdir)/firejail/.
140 install -c -m 0644 .etc/seamonkey.profile $(DESTDIR)/$(sysconfdir)/firejail/.
141 install -c -m 0644 .etc/seamonkey-bin.profile $(DESTDIR)/$(sysconfdir)/firejail/.
142 install -c -m 0644 .etc/telegram.profile $(DESTDIR)/$(sysconfdir)/firejail/.
143 install -c -m 0644 .etc/mathematica.profile $(DESTDIR)/$(sysconfdir)/firejail/.
144 install -c -m 0644 .etc/Mathematica.profile $(DESTDIR)/$(sysconfdir)/firejail/.
145 install -c -m 0644 .etc/uget-gtk.profile $(DESTDIR)/$(sysconfdir)/firejail/.
146 install -c -m 0644 .etc/mupen64plus.profile $(DESTDIR)/$(sysconfdir)/firejail/.
147 install -c -m 0644 .etc/disable-programs.inc $(DESTDIR)/$(sysconfdir)/firejail/.
148 install -c -m 0644 .etc/disable-passwdmgr.inc $(DESTDIR)/$(sysconfdir)/firejail/.
149 install -c -m 0644 .etc/lxterminal.profile $(DESTDIR)/$(sysconfdir)/firejail/.
150 install -c -m 0644 .etc/cherrytree.profile $(DESTDIR)/$(sysconfdir)/firejail/.
151 install -c -m 0644 .etc/wesnoth.profile $(DESTDIR)/$(sysconfdir)/firejail/.
152 install -c -m 0644 .etc/hedgewars.profile $(DESTDIR)/$(sysconfdir)/firejail/.
153 install -c -m 0644 .etc/vivaldi.profile $(DESTDIR)/$(sysconfdir)/firejail/.
154 install -c -m 0644 .etc/vivaldi-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/.
155 install -c -m 0644 .etc/atril.profile $(DESTDIR)/$(sysconfdir)/firejail/.
156 install -c -m 0644 .etc/qutebrowser.profile $(DESTDIR)/$(sysconfdir)/firejail/.
157 install -c -m 0644 .etc/flashpeak-slimjet.profile $(DESTDIR)/$(sysconfdir)/firejail/.
158 install -c -m 0644 .etc/ssh.profile $(DESTDIR)/$(sysconfdir)/firejail/.
159 install -c -m 0644 .etc/openbox.profile $(DESTDIR)/$(sysconfdir)/firejail/.
160 install -c -m 0644 .etc/dillo.profile $(DESTDIR)/$(sysconfdir)/firejail/.
161 install -c -m 0644 .etc/cmus.profile $(DESTDIR)/$(sysconfdir)/firejail/.
162 install -c -m 0644 .etc/dnsmasq.profile $(DESTDIR)/$(sysconfdir)/firejail/.
163 install -c -m 0644 .etc/palemoon.profile $(DESTDIR)/$(sysconfdir)/firejail/.
164 install -c -m 0644 .etc/icedove.profile $(DESTDIR)/$(sysconfdir)/firejail/.
165 install -c -m 0644 .etc/abrowser.profile $(DESTDIR)/$(sysconfdir)/firejail/.
166 install -c -m 0644 .etc/0ad.profile $(DESTDIR)/$(sysconfdir)/firejail/.
167 sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then install -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;" 105 sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then install -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;"
168 sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/firejail.config ]; then install -c -m 0644 etc/firejail.config $(DESTDIR)/$(sysconfdir)/firejail/.; fi;"
169 rm -fr .etc 106 rm -fr .etc
107ifeq ($(HAVE_APPARMOR),-DHAVE_APPARMOR)
108 # install apparmor profile
109 sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d ]; then install -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d; fi;"
110 install -c -m 0644 etc/firejail-default $(DESTDIR)/$(sysconfdir)/apparmor.d/.
111endif
170 # man pages 112 # man pages
171 rm -f firejail.1.gz
172 gzip -9n firejail.1
173 rm -f firemon.1.gz
174 gzip -9n firemon.1
175 rm -f firecfg.1.gz
176 gzip -9n firecfg.1
177 rm -f firejail-profile.5.gz
178 gzip -9n firejail-profile.5
179 rm -f firejail-login.5.gz
180 gzip -9n firejail-login.5
181 rm -f firejail-config.5.gz
182 gzip -9n firejail-config.5
183 install -m 0755 -d $(DESTDIR)/$(mandir)/man1 113 install -m 0755 -d $(DESTDIR)/$(mandir)/man1
184 install -c -m 0644 firejail.1.gz $(DESTDIR)/$(mandir)/man1/.
185 install -c -m 0644 firemon.1.gz $(DESTDIR)/$(mandir)/man1/.
186 install -c -m 0644 firecfg.1.gz $(DESTDIR)/$(mandir)/man1/.
187 install -m 0755 -d $(DESTDIR)/$(mandir)/man5 114 install -m 0755 -d $(DESTDIR)/$(mandir)/man5
188 install -c -m 0644 firejail-profile.5.gz $(DESTDIR)/$(mandir)/man5/. 115 for man in $(MANPAGES); do \
189 install -c -m 0644 firejail-login.5.gz $(DESTDIR)/$(mandir)/man5/. 116 rm -f $$man.gz; \
190 install -c -m 0644 firejail-config.5.gz $(DESTDIR)/$(mandir)/man5/. 117 gzip -9n $$man; \
191 rm -f firejail.1.gz firemon.1.gz firecfg.1.gz firejail-profile.5.gz firejail-login.5.gz firejail-config.5.gz 118 case "$$man" in \
119 *.1) install -c -m 0644 $$man.gz $(DESTDIR)/$(mandir)/man1/; ;; \
120 *.5) install -c -m 0644 $$man.gz $(DESTDIR)/$(mandir)/man5/; ;; \
121 esac; \
122 done
123 rm -f $(MANPAGES) $(MANPAGES:%=%.gz)
192 # bash completion 124 # bash completion
193 install -m 0755 -d $(DESTDIR)/$(datarootdir)/bash-completion/completions 125 install -m 0755 -d $(DESTDIR)/$(datarootdir)/bash-completion/completions
194 install -c -m 0644 src/bash_completion/firejail.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail 126 install -c -m 0644 src/bash_completion/firejail.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail
195 install -c -m 0644 src/bash_completion/firemon.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon 127 install -c -m 0644 src/bash_completion/firemon.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon
196 install -c -m 0644 src/bash_completion/firecfg.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg 128 install -c -m 0644 src/bash_completion/firecfg.bash_completion $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg
197 129
198
199install: all 130install: all
200 $(MAKE) realinstall 131 $(MAKE) realinstall
201 132
@@ -205,7 +136,12 @@ install-strip: all
205 strip src/firecfg/firecfg 136 strip src/firecfg/firecfg
206 strip src/libtrace/libtrace.so 137 strip src/libtrace/libtrace.so
207 strip src/libtracelog/libtracelog.so 138 strip src/libtracelog/libtracelog.so
139 strip src/libconnect/libconnect.so
208 strip src/ftee/ftee 140 strip src/ftee/ftee
141 strip src/faudit/faudit
142 strip src/fnet/fnet
143 strip src/fseccomp/fseccomp
144 strip src/fcopy/fcopy
209 $(MAKE) realinstall 145 $(MAKE) realinstall
210 146
211uninstall: 147uninstall:
@@ -214,30 +150,44 @@ uninstall:
214 rm -f $(DESTDIR)/$(bindir)/firecfg 150 rm -f $(DESTDIR)/$(bindir)/firecfg
215 rm -fr $(DESTDIR)/$(libdir)/firejail 151 rm -fr $(DESTDIR)/$(libdir)/firejail
216 rm -fr $(DESTDIR)/$(datarootdir)/doc/firejail 152 rm -fr $(DESTDIR)/$(datarootdir)/doc/firejail
217 rm -f $(DESTDIR)/$(mandir)/man1/firejail.1* 153 for man in $(MANPAGES); do \
218 rm -f $(DESTDIR)/$(mandir)/man1/firemon.1* 154 rm -f $(DESTDIR)/$(mandir)/man5/$$man*; \
219 rm -f $(DESTDIR)/$(mandir)/man1/firecfg.1* 155 rm -f $(DESTDIR)/$(mandir)/man1/$$man*; \
220 rm -f $(DESTDIR)/$(mandir)/man5/firejail-profile.5* 156 done
221 rm -f $(DESTDIR)/$(mandir)/man5/firejail-login.5*
222 rm -f $(DESTDIR)/$(mandir)/man5/firejail-config.5*
223 rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail 157 rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firejail
224 rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon 158 rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon
225 rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg 159 rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg
226 160
161DISTFILES = "src etc platform configure configure.ac Makefile.in install.sh mkman.sh mketc.sh mkdeb.sh mkuid.sh COPYING README RELNOTES"
162DISTFILES_TEST = "test/apps test/apps-x11 test/apps-x11-xorg test/root test/fcopy test/environment test/profiles test/utils test/compile test/filters test/network test/arguments test/fs test/sysutils"
163
227dist: 164dist:
165 mv config.status config.status.old
228 make distclean 166 make distclean
229 rm -fr $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2 167 mv config.status.old config.status
230 mkdir $(NAME)-$(VERSION) 168 rm -fr $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.xz
231 cd $(NAME)-$(VERSION); cp -a ../src .; cp -a ../etc .; cp -a ../platform .; rm -fr src/tools; cd .. 169 mkdir -p $(NAME)-$(VERSION)/test
232 cd $(NAME)-$(VERSION); cp -a ../configure .; cp -a ../configure.ac .; cp -a ../Makefile.in .; cp -a ../install.sh .; cp -a ../mkman.sh .; cp -a ../mketc.sh .; cp -a ../mkdeb.sh .;cd .. 170 cp -a "$(DISTFILES)" $(NAME)-$(VERSION)
233 cd $(NAME)-$(VERSION); cp -a ../COPYING .; cp -a ../README .; cp -a ../RELNOTES .; cd .. 171 cp -a "$(DISTFILES_TEST)" $(NAME)-$(VERSION)/test
234 cd $(NAME)-$(VERSION); rm -fr `find . -name .svn`; rm -fr $(NAME)-$(VERSION); cd .. 172 rm -rf $(NAME)-$(VERSION)/src/tools
235 tar -cjvf $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION) 173 find $(NAME)-$(VERSION) -name .svn -delete
174 tar -cJvf $(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION)
236 rm -fr $(NAME)-$(VERSION) 175 rm -fr $(NAME)-$(VERSION)
237 176
177asc:; ./mkasc.sh $(VERSION)
178
238deb: dist 179deb: dist
239 ./mkdeb.sh $(NAME) $(VERSION) 180 ./mkdeb.sh $(NAME) $(VERSION)
240 181
182snap: all
183 cd platform/snap; ./snap.sh
184
185install-snap: snap
186 sudo snap remove faudit; sudo snap install faudit*.snap
187
188test-compile: dist
189 cd test/compile; ./compile.sh $(NAME)-$(VERSION)
190
241.PHONY: rpms 191.PHONY: rpms
242rpms: 192rpms:
243 ./platform/rpm/mkrpm.sh $(NAME) $(VERSION) 193 ./platform/rpm/mkrpm.sh $(NAME) $(VERSION)
@@ -250,5 +200,78 @@ cppcheck: clean
250 200
251scan-build: clean 201scan-build: clean
252 scan-build make 202 scan-build make
253asc:; ./mkasc.sh $(VERSION)
254 203
204
205#
206# make test
207#
208
209
210test-profiles:
211 cd test/profiles; ./profiles.sh | grep TESTING
212
213test-apps:
214 cd test/apps; ./apps.sh | grep TESTING
215
216test-apps-x11:
217 cd test/apps-x11; ./apps-x11.sh | grep TESTING
218
219test-apps-x11-xorg:
220 cd test/apps-x11-xorg; ./apps-x11-xorg.sh | grep TESTING
221
222test-sysutils:
223 cd test/sysutils; ./sysutils.sh | grep TESTING
224
225test-utils:
226 cd test/utils; ./utils.sh | grep TESTING
227
228test-environment:
229 cd test/environment; ./environment.sh | grep TESTING
230
231test-filters:
232 cd test/filters; ./filters.sh | grep TESTING
233
234test-arguments:
235 cd test/arguments; ./arguments.sh | grep TESTING
236
237test-fs:
238 cd test/fs; ./fs.sh | grep TESTING
239
240test-fcopy:
241 cd test/fcopy; ./fcopy.sh | grep TESTING
242
243test: test-profiles test-fcopy test-fs test-utils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments
244 echo "TEST COMPLETE"
245
246##########################################
247# Individual tests, some of them require root access
248# The tests are very intrussive, by the time you are done
249# with them you will need to restart your computer.
250##########################################
251
252# requires root access
253test-chroot:
254 cd test/chroot; ./chroot.sh | grep testing
255
256# Huge appimage files, not included in "make dist" archive
257test-appimage:
258 cd test/appimage; ./appimage.sh | grep TESTING
259
260# Root access, network devices are created before the test
261# restart your computer to get rid of these devices
262test-network:
263 cd test/network; ./network.sh | grep TESTING
264
265# Tesets running a root user
266test-root:
267 cd test/root; su -c ./root.sh | grep TESTING
268
269# OverlayFS is not available on all platforms
270test-overlay:
271 cd test/overlay; ./overlay.sh | grep TESTING
272
273# For testing hidepid system, the command to set it up is "mount -o remount,rw,hidepid=2 /proc"
274
275test-all: test-root test-chroot test-network test-appimage test-overlay
276 echo "TEST COMPLETE"
277 \ No newline at end of file