head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC4:1.1.1.1
	netbsd-11-0-RC3:1.1.1.1
	netbsd-11-0-RC2:1.1.1.1
	netbsd-11-0-RC1:1.1.1.1
	netbsd-11:1.1.1.1.0.4
	netbsd-11-base:1.1.1.1
	netbsd-10-1-RELEASE:1.1.1.1
	netbsd-10-0-RELEASE:1.1.1.1
	netbsd-10-0-RC6:1.1.1.1
	netbsd-10-0-RC5:1.1.1.1
	netbsd-10-0-RC4:1.1.1.1
	netbsd-10-0-RC3:1.1.1.1
	netbsd-10-0-RC2:1.1.1.1
	netbsd-10-0-RC1:1.1.1.1
	ctwm-4-1-0:1.1.1.1
	netbsd-10:1.1.1.1.0.2
	netbsd-10-base:1.1.1.1
	ctwm-4-0-3:1.1.1.1
	CTWM:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2021.04.11.08.36.53;	author nia;	state Exp;
branches
	1.1.1.1;
next	;
commitid	PjWN65car4ihSQOC;

1.1.1.1
date	2021.04.11.08.36.53;	author nia;	state Exp;
branches;
next	;
commitid	PjWN65car4ihSQOC;


desc
@@


1.1
log
@Initial revision
@
text
@BASE=ctwm.1

HTML=${BASE}.html

html: ${HTML}
man: ${BASE}

all: html man

all_set_version: all
	sed -i '' -e "s/@@ctwm_version_str@@/`head -1 ../../VERSION`/" ${HTML} ${BASE}

clean:
	rm -f ${BASE} ${HTML}


# asciidoc vs asciidoctor notes:
#
# Note that asciidoctor has a slightly changed dialect, so there may be
# minor differences in the output.  Also, the manpage generation requires
# 1.5.3+.  At the moment, we're trying to work with both.  Current trends
# suggest that at some point asciidoctor will be the de facto
# asciidoc-world implementation, so we may drop the py-asciidoc at some
# point.  For the moment, asciidoctor is treated as the standard
# renderer, with asciidoc being a fallback we try to keep working well.


# Generating HTML output by various means
html-asciidoc: ${BASE}.adoc
	asciidoc -atoc -anumbered -o ${BASE}.html ${BASE}.adoc

html-asciidoctor: ${BASE}.adoc
	asciidoctor -atoc -anumbered -o ${BASE}.html ${BASE}.adoc


# Manpage output.  x-ref comment above about asciidoctor versions
man-asciidoc-a2x: ${BASE}.adoc
	a2x --doctype manpage --format manpage ${BASE}.adoc

man-asciidoc-adoc: ${BASE}.adoc
	asciidoc -b docbook -d manpage -o ${BASE}.xml ${BASE}.adoc
	xmlto man ${BASE}.xml

man-asciidoctor: ${BASE}.adoc
	asciidoctor -b manpage -o ${BASE} ${BASE}.adoc



# Set which are used by default.  Set to asciidoctor since it's massively
# faster.
${HTML}: ${BASE}.adoc
	@@${MAKE} html-asciidoctor

${BASE}: ${BASE}.adoc
	@@${MAKE} man-asciidoctor

@


1.1.1.1
log
@ctwm-4.0.3
@
text
@@
