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 4027 - (download) (annotate)
Sun Dec 21 16:19:23 2014 UTC (4 years, 11 months ago) by jhr
File size: 1373 byte(s)
  added attributes
# 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@
# disable xmllint, since there seem to be issues with finding the DTD [2014-12-21]
A2X_FLAGS =	-L --verbose
ASCIIDOC =	@ASCIIDOC@

SMLNJ_VERSION =	@SMLNJ_VERSION@
SMLNJ_DATE =	@SMLNJ_DATE@

MAN_OUT_DIR =	@OUT_DIR@/man

ATTRS =		--attribute=version=$(SMLNJ_VERSION) \
		--attribute=releasedate="$(SMLNJ_DATE)"

# 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 $(MAN_OUT_DIR)/man1 $(MAN_OUT_DIR)/man7
		cp -p $(MAN1_PAGES) $(MAN_OUT_DIR)/man1
		cp -p $(MAN7_PAGES) $(MAN_OUT_DIR)/man7

.PHONEY:	html
html:		$(HTML)

% : %.txt
	$(A2X) $(A2X_FLAGS) $(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