Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /doc/trunk/src/man/Makefile.in
ViewVC logotype

View of /doc/trunk/src/man/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3947 - (download) (annotate)
Fri Aug 22 21:57:42 2014 UTC (4 years, 6 months ago) by jhr
File size: 1157 byte(s)
  Tweak manpage build
# Makefile for SML/NJ Manual pages
#
# COPYRIGHT (c) 2014 The Fellowship of SML/NJ (http://www.smlnj.org)
# All rights reserved.
#
# @configure_input@
#

SHELL =		@SHELL@
INSTALL =	@INSTALL@
@SET_MAKE@

A2X =		@A2X@
ASCIIDOC =	@ASCIIDOC@

SMLNJ_VERSION =	@PACKAGE_VERSION@

ATTRS =		--attribute="version=$(SMLNJ_VERSION)"

# Section 1 pages
#
TXT1_FILES =	ml-antlr.1.txt \
		ml-build.1.txt \
		ml-ulex.1.txt \
		ml-makedepend.1.txt \
		sml.1.txt

# Section 7 pages
#
TXT7_FILES =	smlnj.7.txt

TXT_FILES =	$(TXT1_FILES) $(TXT7_FILES)

MAN1_PAGES =	$(TXT1_FILES:.txt=)
MAN7_PAGES =	$(TXT7_FILES:.txt=)

HTML =		$(TXT_FILES:.txt=.html)

.PHONEY:	man
man:		$(MAN1_PAGES) $(MAN7_PAGES)
		mkdir -p @ROOT_DIR@/man/man1 @ROOT_DIR@/man/man7
		cp -p $(MAN1_PAGES) @ROOT_DIR@/man/man1
		cp -p $(MAN7_PAGES) @ROOT_DIR@/man/man7

.PHONEY:	html
html:		$(HTML)

% : %.txt
	$(A2X) $(ATTRS) -d manpage -f manpage $<

%.html : %.txt
	$(ASCIIDOC) $(ATTRS) -d manpage -b html5 $<

#################### Cleanup ####################

CLEAN_SUBDIRS =

CLEAN_FILES =

DISTCLEAN_FILES +=	Makefile \
			$(MAN1_PAGES) $(MAN2_PAGES) \
			$(HTML)

include @ROOT_DIR@/mk/clean-rules.gmk

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0