aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Miller <alex.miller@gmx.de>2016-04-18 21:29:55 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-04-20 14:06:00 +0200
commitc1a2e851a136d74e66072eff4867cf4f1c901a5b (patch)
treef3d092ba51e2e76fe7e07f8d43c2a6161fa39b75
parent7d166241303be3603344db6f2973f1b1c6cc879f (diff)
downloadman-pages-c1a2e851a136d74e66072eff4867cf4f1c901a5b.tar.gz
Makefile: Drop compression support and 'screen' target
Compression is already handled properly by distros and explicit support from the package is not desired nowadays. The 'screen' target doesn't handle compressed files. Removal suggested by Mike Frysinger. Signed-off-by: Alexander Miller <alex.miller@gmx.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--Makefile35
1 files changed, 2 insertions, 33 deletions
diff --git a/Makefile b/Makefile
index 4054dcf5e4..f494e8f63a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,47 +1,16 @@
-# Do "make screen" first, if you want to protect already installed,
-# more up-to-date manual pages than the ones included in this package.
# Do "make install" to copy the pages to their destination.
-# Do "make gz" or "make bz2" first if you use compressed source pages.
DESTDIR=
prefix?=/usr
MANDIR=$(prefix)/share/man
-GZIP=gzip -9
-BZIP2=bzip2 -9
-LZMA=xz -9
-
-all: screen remove install
-
-allgz: gz all
-
-allbz: bz2 all
-
-allxz: xz all
-
-screen:
- mkdir -p not_installed
- for i in man?/*; do \
- if [ $(MANDIR)/"$$i" -nt "$$i" ]; then \
- cmp -s $(MANDIR)/"$$i" "$$i" > /dev/null 2>&1; \
- if [ "$$?" != 0 ]; then mv "$$i" not_installed; fi; \
- fi; \
- done
+all: remove install
uninstall remove:
for i in man?/*; do \
- rm -f $(MANDIR)/"$$i" $(MANDIR)/"$$i".gz $(MANDIR)/"$$i".bz2; \
+ rm -f $(MANDIR)/"$$i" $(MANDIR)/"$$i".*; \
done
-gz:
- for i in man?; do $(GZIP) "$$i"/*; done
-
-bz2:
- for i in man?; do $(BZIP2) "$$i"/*; done
-
-xz:
- for i in man?; do $(LZMA) "$$i"/*; done
-
# Use with
# make HTDIR=/some/dir HTOPTS=whatever html
# The sed removes the lines "Content-type: text/html\n\n"