From 76bd5ad0f8347bc111c30f67b2eb151c2e5870ed Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 12 Jul 2023 01:55:07 -0300 Subject: build: simplify code related to man pages Simplify the main targets and use wildcards instead of repeating the filenames manually. Also, restore the `man` target and building only when `HAVE_MAN` is enabled. Note: Make automatically removes intermediate files (.1 and .5), so in general only the .gz files have to be cleaned. Commands used to rename the man pages: cd src/man git mv firecfg.txt firecfg.1.in git mv firejail-login.txt firejail-login.5.in git mv firejail-profile.txt firejail-profile.5.in git mv firejail-users.txt firejail-users.5.in git mv firejail.txt firejail.1.in git mv firemon.txt firemon.1.in git mv jailcheck.txt jailcheck.1.in This is kind of a follow-up to commit 9e206b7f2 ("rework src/man Makefile", 2023-07-07). --- .gitignore | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 549f12738..2285c3e5d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,9 +6,9 @@ *.rpm *.gcda *.gcno +*.gz *.DS_Store .directory -*.man .vscode /firejail-*/ autom4te.cache/ @@ -20,14 +20,6 @@ contrib/syntax/files/example contrib/syntax/files/firejail-profile.lang contrib/syntax/files/firejail.vim firejail-*.tar.xz -firejail-login.5 -firejail-profile.5 -firejail-config.5 -firejail-users.5 -firejail.1 -firemon.1 -firecfg.1 -jailcheck.1 src/fnettrace-dns/fnettrace-dns src/fnettrace-sni/fnettrace-sni src/fnettrace-icmp/fnettrace-icmp @@ -68,10 +60,5 @@ __pycache__ *.pyc *.pyo src/fnettrace/static-ip-map -src/man/firecfg.1.gz -src/man/firejail-login.5.gz -src/man/firejail-profile.5.gz -src/man/firejail-users.5.gz -src/man/firejail.1.gz -src/man/firemon.1.gz -src/man/jailcheck.1.gz +src/man/*.1 +src/man/*.5 -- cgit v1.2.3-70-g09d2