2005-11-20 17:10:48 +00:00
|
|
|
# -*- makefile -*-
|
2000-07-27 19:24:51 +00:00
|
|
|
#
|
|
|
|
# Makefile for the cc65 documentation
|
|
|
|
#
|
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# You can put navigation-arrow pictures (next, back, contents) into HTML files
|
|
|
|
# by setting this variable, either here or on make's command-line.
|
|
|
|
# (You will need to copy the .png files from "share/doc/linuxdoc-tools*/html/".)
|
|
|
|
#
|
|
|
|
#BUTTONS=-I
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# These options decide how text files are made:
|
|
|
|
# -f -- removes the backspace-overtyping that makes bold text
|
|
|
|
# in the more/less commands and on typewriter-printers
|
|
|
|
# -m -- makes Unix manual pages
|
|
|
|
#
|
|
|
|
#TXT_OPTIONS=-f -m
|
|
|
|
|
|
|
|
SGML = apple2.sgml \
|
2005-11-21 20:59:51 +00:00
|
|
|
apple2enh.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
ar65.sgml \
|
|
|
|
atari.sgml \
|
|
|
|
atmos.sgml \
|
|
|
|
c128.sgml \
|
|
|
|
c16.sgml \
|
|
|
|
c64.sgml \
|
|
|
|
ca65.sgml \
|
2003-10-16 22:16:52 +00:00
|
|
|
ca65html.sgml \
|
2006-05-31 21:08:57 +00:00
|
|
|
cbm510.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
cbm610.sgml \
|
|
|
|
cc65.sgml \
|
|
|
|
cl65.sgml \
|
|
|
|
co65.sgml \
|
2000-12-03 18:17:50 +00:00
|
|
|
coding.sgml \
|
2010-02-25 21:51:00 +00:00
|
|
|
customizing.sgml\
|
2005-11-20 17:10:48 +00:00
|
|
|
da65.sgml \
|
2000-12-03 18:48:23 +00:00
|
|
|
debugging.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
dio.sgml \
|
|
|
|
funcref.sgml \
|
|
|
|
geos.sgml \
|
2010-11-18 18:47:01 +00:00
|
|
|
grc65.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
index.sgml \
|
2000-12-03 18:34:50 +00:00
|
|
|
intro.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
ld65.sgml \
|
|
|
|
library.sgml \
|
|
|
|
lynx.sgml \
|
2010-11-11 07:06:41 +00:00
|
|
|
using-make.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
nes.sgml \
|
2010-07-30 19:33:53 +00:00
|
|
|
od65.sgml \
|
2005-11-20 17:10:48 +00:00
|
|
|
pet.sgml \
|
|
|
|
plus4.sgml \
|
2012-02-21 20:02:20 +00:00
|
|
|
smc.sgml \
|
2012-03-11 13:34:58 +00:00
|
|
|
sp65.sgml \
|
2006-08-17 19:27:19 +00:00
|
|
|
supervision.sgml\
|
2005-11-20 17:10:48 +00:00
|
|
|
vic20.sgml
|
|
|
|
|
|
|
|
TXT = $(SGML:.sgml=.txt)
|
|
|
|
HTML = $(SGML:.sgml=.html)
|
|
|
|
INFO = $(SGML:.sgml=.info)
|
|
|
|
DVI = $(SGML:.sgml=.dvi)
|
|
|
|
TEX = $(SGML:.sgml=.tex)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2005-11-20 17:10:48 +00:00
|
|
|
# Pattern-rules, to make targets
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.txt: %.sgml
|
2009-02-15 16:57:06 +00:00
|
|
|
linuxdoc -B txt -f $(TXT_OPTIONS) $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.html: %.sgml
|
2009-03-06 09:58:13 +00:00
|
|
|
linuxdoc -B html --split=1 $(BUTTONS) $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.info: %.sgml
|
2009-02-15 16:57:06 +00:00
|
|
|
linuxdoc -B info $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.dvi: %.sgml
|
2009-02-15 16:57:06 +00:00
|
|
|
linuxdoc -B latex --output=dvi $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2001-05-04 17:46:30 +00:00
|
|
|
%.tex: %.sgml
|
2009-02-15 16:57:06 +00:00
|
|
|
linuxdoc -B latex --output=tex $<
|
2001-05-04 17:46:30 +00:00
|
|
|
|
2000-07-27 19:24:51 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: txt html info dvi
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: txt
|
2005-11-20 17:10:48 +00:00
|
|
|
txt: linuxdoc $(TXT)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: html
|
2005-11-20 17:10:48 +00:00
|
|
|
html: linuxdoc $(HTML)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: info
|
2005-11-20 17:10:48 +00:00
|
|
|
info: linuxdoc $(INFO)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: dvi
|
2005-11-20 17:10:48 +00:00
|
|
|
dvi: linuxdoc $(DVI)
|
2001-05-04 17:46:30 +00:00
|
|
|
|
|
|
|
.PHONY: tex
|
2005-11-20 17:10:48 +00:00
|
|
|
tex: linuxdoc $(TEX)
|
|
|
|
|
|
|
|
.PHONY: linuxdoc
|
|
|
|
linuxdoc:
|
|
|
|
@sgmlcheck index >/dev/null 2>&1 || { \
|
|
|
|
echo; \
|
|
|
|
echo '"LinuxDoc Tools" does not exist on this system.'; \
|
|
|
|
echo 'So, most of the documentation might not have been built.'; \
|
|
|
|
echo; \
|
|
|
|
false;}
|
|
|
|
|
|
|
|
.PHONY: clean
|
2000-07-27 19:24:51 +00:00
|
|
|
clean:
|
2005-11-20 17:10:48 +00:00
|
|
|
$(RM) *~
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
.PHONY: zap
|
2000-07-27 19:24:51 +00:00
|
|
|
zap: clean
|
2005-11-20 17:10:48 +00:00
|
|
|
$(RM) $(TXT) $(TEX) $(DVI) *.htm* *.inf* *.man
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2003-12-16 11:46:05 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Special target rules
|
2006-08-17 19:27:19 +00:00
|
|
|
|
2003-12-16 11:46:05 +00:00
|
|
|
coding.html: coding.sgml
|
|
|
|
sgml2html --split=0 $<
|
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# funcref.sgml's third section is huge.
|
|
|
|
# So, funcref.html is split into sub-section files.
|
2006-05-31 21:08:57 +00:00
|
|
|
#
|
2003-12-16 11:46:05 +00:00
|
|
|
funcref.html: funcref.sgml
|
2005-11-20 17:10:48 +00:00
|
|
|
sgml2html --split=2 $(BUTTONS) $<
|
2003-12-16 11:46:05 +00:00
|
|
|
|
2005-11-20 17:10:48 +00:00
|
|
|
# The index.html target is special:
|
|
|
|
# It is only a table of contents. So, it should not be split.
|
|
|
|
#
|
|
|
|
index.html: index.sgml
|
2003-12-16 17:44:15 +00:00
|
|
|
sgml2html --split=0 $<
|