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 \
|
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 \
|
|
|
|
coding.sgml \
|
|
|
|
dio.sgml \
|
|
|
|
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)
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Rules to make targets
|
|
|
|
|
|
|
|
%.txt: %.sgml
|
|
|
|
sgml2txt $<
|
|
|
|
|
|
|
|
%.html: %.sgml
|
2000-11-29 19:12:20 +00:00
|
|
|
sgml2html --split=1 $<
|
2000-07-27 19:24:51 +00:00
|
|
|
|
|
|
|
%.info: %.sgml
|
|
|
|
sgml2info $<
|
|
|
|
|
|
|
|
%.dvi: %.sgml
|
|
|
|
sgml2latex $<
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# Targets
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: txt html info dvi
|
|
|
|
|
|
|
|
.PHONY: txt
|
|
|
|
txt: $(TXT)
|
|
|
|
|
|
|
|
.PHONY: html
|
|
|
|
html: $(HTML)
|
|
|
|
|
|
|
|
.PHONY: info
|
|
|
|
info: $(INFO)
|
|
|
|
|
|
|
|
.PHONY: dvi
|
|
|
|
dvi: $(DVI)
|
|
|
|
|
2000-12-03 17:00:40 +00:00
|
|
|
# The index.html target is special, since it does not get splitted
|
|
|
|
index.html: index.sgml
|
|
|
|
sgml2html --split=0 $<
|
|
|
|
|
2000-07-27 19:24:51 +00:00
|
|
|
clean:
|
|
|
|
rm -f *~
|
|
|
|
|
|
|
|
zap: clean
|
2000-07-28 16:57:09 +00:00
|
|
|
rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.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
|
|
|
|
|
|
|
|
|