1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00
cc65/doc/Makefile
cuz cae003706e Converted cc65.txt to SGML (incomplete). Several corrections in the other
docs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@319 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-09-03 16:49:38 +00:00

66 lines
1.0 KiB
Makefile

#
# Makefile for the cc65 documentation
#
# Default for the compiler lib search path as compiler define
SGML = ar65.sgml \
ca65.sgml \
cc65.sgml \
cl65.sgml
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
sgml2html --split=0 $<
%.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)
clean:
rm -f *~
zap: clean
rm -f $(TXT) $(HTML) $(INFO) $(DVI) *.html *.info-* *.man
# ------------------------------------------------------------------------------
# Make the dependencies
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -MM $^ > .depend