Makefile revision 13036
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Makefile for generateing man page tarballs that are used in each of the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# SUNW*.spec files
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# Generates : $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# e.g. sun-manpage-tarballs/*.tar.gz
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# "make" : Rebuilds all man page tarballs
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# "make check-used" : Outputs list of man pages not being used.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# "make check-version" : Prints current man page tarball version
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# "make $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# will only generate SUNWgnome-panel's man page tarball
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# For each package that contains man pages.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# - Ensure all relevant man pages for your package are located under the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# correct man page section dir i.e.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# - Add Package name to PACKAGES Variable
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# e.g. PACKAGES = \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# SUNWgnome-panel \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# SUNWyour-package
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync# - Add two package specific variables
# e.g. SUNWgnome-panel_PAGES = man1/gnome-panel.1 etc...
# PACKAGE.PAGES - Assigned to $(PACKAGE_PAGES).
# e.g. SUNWgnome-panel.PAGES: $(SUNWgnome-panel_PAGES)
# e.g. For a new gnome-panel man page it would be added to
PACKAGES = \
SUNWTiff \
SUNWdbus \
SUNWgnome-cd \
SUNWgnome-print \
SUNWjpg \
SUNWpng \
SUNWTiff_PAGES = \
SUNWdbus_PAGES = \
SUNWjpg_PAGES = \
SUNWpng_PAGES = \
SUNWfsexam_PAGES = \
@if test -f $(TARBALL_DIR)/$@; then \
echo " $$base_manpage"; \
echo " install --mode=0644 \$$\$$mp $$(DESTDIR)$$(MAN"$$mantype"DIR); \\" >> $(MANPAGE_DIR)/Makefile; \
@if test -f unused-manpages.txt; then \
@echo $(MANPAGE_VERSION)