Change the way the compressed man page is built/installed.

This commit is contained in:
Yann E. MORIN" 2007-07-30 21:23:53 +00:00
parent 8e11f48162
commit 5dcc71b489

View File

@ -18,7 +18,7 @@ MAKE := $(shell which $(MAKE) || type -p $(MAKE) || echo /usr/bin/make)
###############################################################################
# Global make rules
build: build-bin build-lib build-doc
build: build-bin build-lib build-man
install: install-local-test build install-bin install-lib install-doc install-man
@ -40,7 +40,11 @@ build-bin: ct-ng
build-lib:
build-doc: docs/ct-ng.1
build-man: docs/ct-ng.1.gz
docs/ct-ng.1.gz: docs/ct-ng.1
@echo " GZIP $@"
@gzip -f9 $<
%: %.in
@echo " SED $@"
@ -107,9 +111,8 @@ install-doc: install-local-test $(DOCDIR)
done
install-man: install-local-test $(MANDIR)
@echo " INST ct-ng.1"
@install -m 644 docs/ct-ng.1 $(MANDIR)
@gzip -f9 $(MANDIR)/ct-ng.1
@echo " INST ct-ng.1.gz"
@install -m 644 docs/ct-ng.1.gz $(MANDIR)
$(BINDIR) $(LIBDIR) $(DOCDIR) $(MANDIR)::
@echo " MKDIR $@"