Makefile revision 18345
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# Makefile for generateing man page tarballs that are used in each of the
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# SUNW*.spec files
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# Generates : $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# e.g. sun-manpage-tarballs/*.tar.gz
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# "make" : Rebuilds all man page tarballs
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# "make check-used" : Outputs list of man pages not being used.
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# "make check-version" : Prints current man page tarball version
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# "make $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# e.g. "make SUNWgnome-panel-manpages-0.1.tar.gz"
2a590fe9882d8ed506bfa8cb2decb273f0deae6eAndreas Gustafsson# will only generate SUNWgnome-panel's man page tarball
# correct man page section dir i.e.
# e.g. PACKAGES = \
# 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 \
SUNWbabl \
SUNWdia \
SUNWdbus \
SUNWgegl \
SUNWgtk2 \
SUNWgnome-cd \
SUNWgnome-print \
SUNWjpg \
SUNWpng \
SUNWw3m \
SUNWflac \
SUNWTiff_PAGES = \
SUNWcheese_PAGES = \
SUNWdbus_PAGES = \
SUNWglib2_PAGES = \
SUNWcairo_PAGES = \
SUNWpango_PAGES = \
SUNWlibatk_PAGES = \
SUNWgtk2_PAGES = \
SUNWlibart_PAGES = \
SUNWjpg_PAGES = \
SUNWpng_PAGES = \
SUNWfsexam_PAGES = \
SUNWgamin_PAGES = \
SUNWliboil_PAGES = \
SUNWglibmm_PAGES = \
SUNWsigcpp_PAGES = \
SUNWgnutls_PAGES = \
SUNWgtkmm_PAGES = \
SUNWespeak_PAGES = \
SUNWw3m_PAGES = \
SUNWlibgsf_PAGES = \
SUNWdia_PAGES = \
SUNWdrivel_PAGES = \
SUNWbabl_PAGES = \
SUNWgegl_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)