##
# Makefile for generateing man page tarballs that are used in each of the
# SUNW*.spec files
#
# Generates : $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
#
# Usage :
# "make" : Rebuilds all man page tarballs
#
# "make check-used" : Outputs list of man pages not being used.
#
# "make check-version" : Prints current man page tarball version
#
# "make $(PACKAGE)-manpages-$(MANPAGE_VERSION).tar.gz
# e.g. "make SUNWgnome-panel-manpages-0.1.tar.gz"
# will only generate SUNWgnome-panel's man page tarball
#
# For each package that contains man pages.
# - Ensure all relevant man pages for your package are located under the
# correct man page section dir i.e.
# - Add Package name to PACKAGES Variable
# e.g. PACKAGES = \
# SUNWgnome-panel \
# SUNWyour-package
#
# - Add two package specific variables
# PACKAGE - Full path of all manpages for this package with section
# suffix.
# e.g. SUNWgnome-panel_PAGES = man1/gnome-panel.1 etc...
#
#
# To Add new man pages to existing packages
# -----------------------------------------
# Put very simply, all that is required from engineers is to make some changes
# and commit in SVN.
#
# - Ensure the man page exists in SVN under the relevant man page section sub
# dir
# - Add man page to the SUNW<package>_PAGES Makefile variable
# e.g. For a new gnome-panel man page it would be added to
# SUNWgnome-panel_PAGES
# - Remake tarballs
# $ make
# This will re-generate all man page tarballs.
# - Copy newly generated tarball from sun-manpage-tarballs to package build
# install correctly.
# - New man page tarball will be generated by RE for each nightly, and for each
# milestone build.
#
#
# MANPAGE_VERSION is maintained by RE and only gets bumped when spec-files gets
# branched. PLEASE do not change this.
#
PACKAGES = \
SUNWclutter = \
SUNWclutter-gst = \
SUNWclutter-gtk = \
SUNWseahorse-plugins = \
SUNWlibtasn1-bin = \
prep:
@test -x $(GZIP) || echo "gzip utility not found"
done
suffix_name=`echo $$manpage | \
[ "$$section_name" == "$$suffix_name" ] || \
manpage_name=`basename $$manpage`; \
done; \
done
@all_manpages=`ls check-all-manpages/*`; \
base_manpage=`basename $$manpage`; \
else \
fi; \
done
@if test -f unused-manpages.txt; then \
echo "Following Manpages are not being used in any SUNW package :"; \
rm -f unused-manpages.txt; \
else \
echo "All man pages are being used"; \
fi
done
@echo $(MANPAGE_VERSION)