2000-07-27 19:24:51 +00:00
|
|
|
#
|
|
|
|
# Makefile for the cc65 documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Default for the compiler lib search path as compiler define
|
|
|
|
|
|
|
|
SGML = ar65.sgml \
|
2003-09-24 17:21:03 +00:00
|
|
|
c64.sgml \
|
2000-08-02 07:41:56 +00:00
|
|
|
ca65.sgml \
|
2000-09-03 16:49: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 \
|
2000-12-03 17:00:40 +00:00
|
|
|
library.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 $<
|
|
|
|
|
2002-11-27 23:06:59 +00:00
|
|
|
funcref.html: funcref.sgml
|
|
|
|
sgml2html --split=2 $<
|
|
|
|
|
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
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Make the dependencies
|
|
|
|
|
|
|
|
.PHONY: depend dep
|
|
|
|
depend dep: $(OBJS:.o=.c)
|
|
|
|
@echo "Creating dependency information"
|
|
|
|
$(CC) -MM $^ > .depend
|
|
|
|
|
|
|
|
|