aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-12 02:13:14 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-12 22:43:46 -0300
commit8e79f18cf9459ea194d5b50aef7e7b1ee40e8e07 (patch)
tree1616bbaa93ad1957e8ad4dccf7c65f5db87a0341 /Makefile
parentbuild: fix wrong man page paths (diff)
downloadfirejail-8e79f18cf9459ea194d5b50aef7e7b1ee40e8e07.tar.gz
firejail-8e79f18cf9459ea194d5b50aef7e7b1ee40e8e07.tar.zst
firejail-8e79f18cf9459ea194d5b50aef7e7b1ee40e8e07.zip
build: add missing makefile dep
Make the non-phony targets that are defined in the root Makefile depend on it, to ensure that they get re-generated if their recipes change. Note that these targets are generated nearly instantly, so this should not noticeably affect rebuild times. Relates to #5627.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 18 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index e3e0ad551..c0b8e1daa 100644
--- a/Makefile
+++ b/Makefile
@@ -64,31 +64,31 @@ $(MYDIRS):
64 64
65.PHONY: filters 65.PHONY: filters
66filters: $(SECCOMP_FILTERS) 66filters: $(SECCOMP_FILTERS)
67seccomp: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize 67seccomp: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize Makefile
68 src/fseccomp/fseccomp default seccomp 68 src/fseccomp/fseccomp default seccomp
69 src/fsec-optimize/fsec-optimize seccomp 69 src/fsec-optimize/fsec-optimize seccomp
70 70
71seccomp.debug: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize 71seccomp.debug: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize Makefile
72 src/fseccomp/fseccomp default seccomp.debug allow-debuggers 72 src/fseccomp/fseccomp default seccomp.debug allow-debuggers
73 src/fsec-optimize/fsec-optimize seccomp.debug 73 src/fsec-optimize/fsec-optimize seccomp.debug
74 74
75seccomp.32: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize 75seccomp.32: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize Makefile
76 src/fseccomp/fseccomp secondary 32 seccomp.32 76 src/fseccomp/fseccomp secondary 32 seccomp.32
77 src/fsec-optimize/fsec-optimize seccomp.32 77 src/fsec-optimize/fsec-optimize seccomp.32
78 78
79seccomp.block_secondary: src/fseccomp/fseccomp 79seccomp.block_secondary: src/fseccomp/fseccomp Makefile
80 src/fseccomp/fseccomp secondary block seccomp.block_secondary 80 src/fseccomp/fseccomp secondary block seccomp.block_secondary
81 81
82seccomp.mdwx: src/fseccomp/fseccomp 82seccomp.mdwx: src/fseccomp/fseccomp Makefile
83 src/fseccomp/fseccomp memory-deny-write-execute seccomp.mdwx 83 src/fseccomp/fseccomp memory-deny-write-execute seccomp.mdwx
84 84
85seccomp.mdwx.32: src/fseccomp/fseccomp 85seccomp.mdwx.32: src/fseccomp/fseccomp Makefile
86 src/fseccomp/fseccomp memory-deny-write-execute.32 seccomp.mdwx.32 86 src/fseccomp/fseccomp memory-deny-write-execute.32 seccomp.mdwx.32
87 87
88seccomp.namespaces: src/fseccomp/fseccomp 88seccomp.namespaces: src/fseccomp/fseccomp Makefile
89 src/fseccomp/fseccomp restrict-namespaces seccomp.namespaces cgroup,ipc,net,mnt,pid,time,user,uts 89 src/fseccomp/fseccomp restrict-namespaces seccomp.namespaces cgroup,ipc,net,mnt,pid,time,user,uts
90 90
91seccomp.namespaces.32: src/fseccomp/fseccomp 91seccomp.namespaces.32: src/fseccomp/fseccomp Makefile
92 src/fseccomp/fseccomp restrict-namespaces seccomp.namespaces.32 cgroup,ipc,net,mnt,pid,time,user,uts 92 src/fseccomp/fseccomp restrict-namespaces seccomp.namespaces.32 cgroup,ipc,net,mnt,pid,time,user,uts
93 93
94.PHONY: man 94.PHONY: man
@@ -103,33 +103,33 @@ contrib: syntax
103syntax: $(SYNTAX_FILES) 103syntax: $(SYNTAX_FILES)
104 104
105# TODO: include/rlimit are false positives 105# TODO: include/rlimit are false positives
106contrib/syntax/lists/profile_commands_arg0.list: src/firejail/profile.c 106contrib/syntax/lists/profile_commands_arg0.list: src/firejail/profile.c Makefile
107 @sed -En 's/.*strn?cmp\(ptr, "([^ "]*[^ ])".*/\1/p' $< | \ 107 @sed -En 's/.*strn?cmp\(ptr, "([^ "]*[^ ])".*/\1/p' $< | \
108 grep -Ev '^(include|rlimit)$$' | sed 's/\./\\./' | LC_ALL=C sort -u >$@ 108 grep -Ev '^(include|rlimit)$$' | sed 's/\./\\./' | LC_ALL=C sort -u >$@
109 109
110# TODO: private-lib is special-cased in the code and doesn't match the regex 110# TODO: private-lib is special-cased in the code and doesn't match the regex
111contrib/syntax/lists/profile_commands_arg1.list: src/firejail/profile.c 111contrib/syntax/lists/profile_commands_arg1.list: src/firejail/profile.c Makefile
112 @{ sed -En 's/.*strn?cmp\(ptr, "([^"]+) ".*/\1/p' $<; echo private-lib; } | \ 112 @{ sed -En 's/.*strn?cmp\(ptr, "([^"]+) ".*/\1/p' $<; echo private-lib; } | \
113 LC_ALL=C sort -u >$@ 113 LC_ALL=C sort -u >$@
114 114
115contrib/syntax/lists/profile_conditionals.list: src/firejail/profile.c 115contrib/syntax/lists/profile_conditionals.list: src/firejail/profile.c Makefile
116 @awk -- 'BEGIN {process=0;} /^Cond conditionals\[\] = \{$$/ {process=1;} \ 116 @awk -- 'BEGIN {process=0;} /^Cond conditionals\[\] = \{$$/ {process=1;} \
117 /\t*\{"[^"]+".*/ \ 117 /\t*\{"[^"]+".*/ \
118 { if (process) {print gensub(/^\t*\{"([^"]+)".*$$/, "\\1", 1);} } \ 118 { if (process) {print gensub(/^\t*\{"([^"]+)".*$$/, "\\1", 1);} } \
119 /^\t\{ NULL, NULL \}$$/ {process=0;}' \ 119 /^\t\{ NULL, NULL \}$$/ {process=0;}' \
120 $< | LC_ALL=C sort -u >$@ 120 $< | LC_ALL=C sort -u >$@
121 121
122contrib/syntax/lists/profile_macros.list: src/firejail/macros.c 122contrib/syntax/lists/profile_macros.list: src/firejail/macros.c Makefile
123 @sed -En 's/.*\$$\{([^}]+)\}.*/\1/p' $< | LC_ALL=C sort -u >$@ 123 @sed -En 's/.*\$$\{([^}]+)\}.*/\1/p' $< | LC_ALL=C sort -u >$@
124 124
125contrib/syntax/lists/syscall_groups.list: src/lib/syscall.c 125contrib/syntax/lists/syscall_groups.list: src/lib/syscall.c Makefile
126 @sed -En 's/.*"@([^",]+).*/\1/p' $< | LC_ALL=C sort -u >$@ 126 @sed -En 's/.*"@([^",]+).*/\1/p' $< | LC_ALL=C sort -u >$@
127 127
128contrib/syntax/lists/syscalls.list: $(SYSCALL_HEADERS) 128contrib/syntax/lists/syscalls.list: $(SYSCALL_HEADERS) Makefile
129 @sed -n 's/{\s\+"\([^"]\+\)",.*},/\1/p' $(SYSCALL_HEADERS) | \ 129 @sed -n 's/{\s\+"\([^"]\+\)",.*},/\1/p' $(SYSCALL_HEADERS) | \
130 LC_ALL=C sort -u >$@ 130 LC_ALL=C sort -u >$@
131 131
132contrib/syntax/lists/system_errnos.list: src/lib/errno.c 132contrib/syntax/lists/system_errnos.list: src/lib/errno.c Makefile
133 @sed -En 's/.*"(E[^"]+).*/\1/p' $< | LC_ALL=C sort -u >$@ 133 @sed -En 's/.*"(E[^"]+).*/\1/p' $< | LC_ALL=C sort -u >$@
134 134
135pipe_fromlf = { tr '\n' '|' | sed 's/|$$//'; } 135pipe_fromlf = { tr '\n' '|' | sed 's/|$$//'; }
@@ -144,17 +144,17 @@ edit_syntax_file = sed \
144 -e "s/@FJ_SYSCALL_GROUPS@/$$($(pipe_fromlf) <contrib/syntax/lists/syscall_groups.list)/" \ 144 -e "s/@FJ_SYSCALL_GROUPS@/$$($(pipe_fromlf) <contrib/syntax/lists/syscall_groups.list)/" \
145 -e "s/@FJ_SYSTEM_ERRNOS@/$$($(pipe_fromlf) <contrib/syntax/lists/system_errnos.list)/" 145 -e "s/@FJ_SYSTEM_ERRNOS@/$$($(pipe_fromlf) <contrib/syntax/lists/system_errnos.list)/"
146 146
147contrib/syntax/files/example: contrib/syntax/files/example.in $(SYNTAX_LISTS) 147contrib/syntax/files/example: contrib/syntax/files/example.in $(SYNTAX_LISTS) Makefile
148 @printf 'Generating %s from %s\n' $@ $< 148 @printf 'Generating %s from %s\n' $@ $<
149 @$(edit_syntax_file) $< >$@ 149 @$(edit_syntax_file) $< >$@
150 150
151# gtksourceview language-specs 151# gtksourceview language-specs
152contrib/syntax/files/%.lang: contrib/syntax/files/%.lang.in $(SYNTAX_LISTS) 152contrib/syntax/files/%.lang: contrib/syntax/files/%.lang.in $(SYNTAX_LISTS) Makefile
153 @printf 'Generating %s from %s\n' $@ $< 153 @printf 'Generating %s from %s\n' $@ $<
154 @$(edit_syntax_file) $< >$@ 154 @$(edit_syntax_file) $< >$@
155 155
156# vim syntax files 156# vim syntax files
157contrib/syntax/files/%.vim: contrib/syntax/files/%.vim.in $(SYNTAX_LISTS) 157contrib/syntax/files/%.vim: contrib/syntax/files/%.vim.in $(SYNTAX_LISTS) Makefile
158 @printf 'Generating %s from %s\n' $@ $< 158 @printf 'Generating %s from %s\n' $@ $<
159 @$(edit_syntax_file) $< >$@ 159 @$(edit_syntax_file) $< >$@
160 160