2000-07-27 19:24:51 +00:00
|
|
|
#
|
|
|
|
# Makefile for the cc65 documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Default for the compiler lib search path as compiler define
|
|
|
|
|
2003-12-16 11:46:05 +00:00
|
|
|
SGML = apple2.sgml \
|
|
|
|
ar65.sgml \
|
2003-10-16 18:05:42 +00:00
|
|
|
atari.sgml \
|
2003-12-14 20:00:59 +00:00
|
|
|
c128.sgml \
|
2003-12-15 21:13:38 +00:00
|
|
|
c16.sgml \
|
2003-09-24 17:21:03 +00:00
|
|
|
c64.sgml \
|
2003-12-15 21:13:38 +00:00
|
|
|
ca65.sgml \
|
2003-10-16 22:16:52 +00:00
|
|
|
ca65html.sgml \
|
2003-12-16 19:13:24 +00:00
|
|
|
cbm610.sgml \
|
2003-12-15 21:13:38 +00:00
|
|
|
cc65.sgml \
|
2000-12-03 18:17:50 +00:00
|
|
|
cl65.sgml \
|
2003-02-12 12:48:26 +00:00
|
|
|
co65.sgml \
|
2000-12-03 18:17:50 +00:00
|
|
|
coding.sgml \
|
2003-08-08 10:03:35 +00:00
|
|
|
da65.sgml \
|
2000-12-03 18:48:23 +00:00
|
|
|
debugging.sgml \
|
2000-12-03 18:17:50 +00:00
|
|
|
dio.sgml \
|
2002-11-07 19:10:34 +00:00
|
|
|
funcref.sgml \
|
2000-12-03 18:17:50 +00:00
|
|
|
geos.sgml \
|
|
|
|
index.sgml \
|
2000-12-03 18:34:50 +00:00
|
|
|
intro.sgml \
|
2000-12-03 18:17:50 +00:00
|
|
|
ld65.sgml \
|
2003-12-14 21:39:33 +00:00
|
|
|
library.sgml \
|
2004-09-17 17:33:27 +00:00
|
|
|
plus4.sgml \
|
|
|
|
vic20.sgml
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
TXT = $(SGML:.sgml=.txt)
|
|
|
|
HTML = $(SGML:.sgml=.html)
|
|
|
|
INFO = $(SGML:.sgml=.info)
|
|
|
|
DVI = $(SGML:.sgml=.dvi)
|
2001-05-04 17:46:30 +00:00
|
|
|
TEX = $(SGML:.sgml=.tex)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Rules to make targets
|
|
|
|
|
|
|
|
%.txt: %.sgml
|
|
|
|
sgml2txt $<
|
|
|
|
|
|
|
|
%.html: %.sgml
|
2001-05-24 08:26:43 +00:00
|
|
|
sgml2html --split=1 $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.info: %.sgml
|
|
|
|
sgml2info $<
|
|
|
|
|
|
|
|
%.dvi: %.sgml
|
|
|
|
sgml2latex $<
|
|
|
|
|
2001-05-04 17:46:30 +00:00
|
|
|
%.tex: %.sgml
|
|
|
|
sgml2latex --output=tex $<
|
|
|
|
|
2000-07-27 19:24:51 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all
|
2001-05-04 17:46:30 +00:00
|
|
|
all: txt html info dvi
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: txt
|
2001-05-04 17:46:30 +00:00
|
|
|
txt: $(TXT)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: html
|
2001-05-04 17:46:30 +00:00
|
|
|
html: $(HTML)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: info
|
2001-05-04 17:46:30 +00:00
|
|
|
info: $(INFO)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
.PHONY: dvi
|
2001-05-04 17:46:30 +00:00
|
|
|
dvi: $(DVI)
|
|
|
|
|
|
|
|
.PHONY: tex
|
|
|
|
tex: $(TEX)
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2000-12-03 17:00:40 +00:00
|
|
|
# The index.html target is special, since it does not get splitted
|
|
|
|
index.html: index.sgml
|
2001-05-04 17:46:30 +00:00
|
|
|
sgml2html --split=0 $<
|
2000-12-03 17:00:40 +00:00
|
|
|
|
2000-07-27 19:24:51 +00:00
|
|
|
clean:
|
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
zap: clean
|
2001-05-04 17:46:30 +00:00
|
|
|
rm -f $(TXT) $(HTML) $(INFO) $(DVI) $(TEX) *.html *.info-* *.man
|
2000-07-27 19:24:51 +00:00
|
|
|
|
2003-12-16 11:46:05 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Special target rules
|
|
|
|
|
|
|
|
coding.html: coding.sgml
|
|
|
|
sgml2html --split=0 $<
|
|
|
|
|
|
|
|
funcref.html: funcref.sgml
|
|
|
|
sgml2html --split=2 $<
|
|
|
|
|
2003-12-16 17:44:15 +00:00
|
|
|
index.html: index.sgml
|
|
|
|
sgml2html --split=0 $<
|
|
|
|
|
2000-07-27 19:24:51 +00:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Make the dependencies
|
|
|
|
|
|
|
|
.PHONY: depend dep
|
|
|
|
depend dep: $(OBJS:.o=.c)
|
|
|
|
@echo "Creating dependency information"
|
|
|
|
$(CC) -MM $^ > .depend
|
|
|
|
|
|
|
|
|