diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-08-12 02:13:14 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-08-12 22:43:46 -0300 |
commit | 8e79f18cf9459ea194d5b50aef7e7b1ee40e8e07 (patch) | |
tree | 1616bbaa93ad1957e8ad4dccf7c65f5db87a0341 /Makefile | |
parent | build: fix wrong man page paths (diff) | |
download | firejail-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-- | Makefile | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -64,31 +64,31 @@ $(MYDIRS): | |||
64 | 64 | ||
65 | .PHONY: filters | 65 | .PHONY: filters |
66 | filters: $(SECCOMP_FILTERS) | 66 | filters: $(SECCOMP_FILTERS) |
67 | seccomp: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize | 67 | seccomp: 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 | ||
71 | seccomp.debug: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize | 71 | seccomp.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 | ||
75 | seccomp.32: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize | 75 | seccomp.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 | ||
79 | seccomp.block_secondary: src/fseccomp/fseccomp | 79 | seccomp.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 | ||
82 | seccomp.mdwx: src/fseccomp/fseccomp | 82 | seccomp.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 | ||
85 | seccomp.mdwx.32: src/fseccomp/fseccomp | 85 | seccomp.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 | ||
88 | seccomp.namespaces: src/fseccomp/fseccomp | 88 | seccomp.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 | ||
91 | seccomp.namespaces.32: src/fseccomp/fseccomp | 91 | seccomp.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 | |||
103 | syntax: $(SYNTAX_FILES) | 103 | syntax: $(SYNTAX_FILES) |
104 | 104 | ||
105 | # TODO: include/rlimit are false positives | 105 | # TODO: include/rlimit are false positives |
106 | contrib/syntax/lists/profile_commands_arg0.list: src/firejail/profile.c | 106 | contrib/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 |
111 | contrib/syntax/lists/profile_commands_arg1.list: src/firejail/profile.c | 111 | contrib/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 | ||
115 | contrib/syntax/lists/profile_conditionals.list: src/firejail/profile.c | 115 | contrib/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 | ||
122 | contrib/syntax/lists/profile_macros.list: src/firejail/macros.c | 122 | contrib/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 | ||
125 | contrib/syntax/lists/syscall_groups.list: src/lib/syscall.c | 125 | contrib/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 | ||
128 | contrib/syntax/lists/syscalls.list: $(SYSCALL_HEADERS) | 128 | contrib/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 | ||
132 | contrib/syntax/lists/system_errnos.list: src/lib/errno.c | 132 | contrib/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 | ||
135 | pipe_fromlf = { tr '\n' '|' | sed 's/|$$//'; } | 135 | pipe_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 | ||
147 | contrib/syntax/files/example: contrib/syntax/files/example.in $(SYNTAX_LISTS) | 147 | contrib/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 |
152 | contrib/syntax/files/%.lang: contrib/syntax/files/%.lang.in $(SYNTAX_LISTS) | 152 | contrib/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 |
157 | contrib/syntax/files/%.vim: contrib/syntax/files/%.vim.in $(SYNTAX_LISTS) | 157 | contrib/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 | ||