]> git.sur5r.net Git - cc65/commitdiff
Added SGML makefile
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 27 Jul 2000 19:24:51 +0000 (19:24 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 27 Jul 2000 19:24:51 +0000 (19:24 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@207 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/Makefile [new file with mode: 0644]

diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644 (file)
index 0000000..3dff24f
--- /dev/null
@@ -0,0 +1,63 @@
+#
+# Makefile for the cc65 documentation
+#
+
+
+# Default for the compiler lib search path as compiler define
+
+SGML  =        ar65.sgml       \
+       ca65.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 $<
+
+%.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)
+
+# ------------------------------------------------------------------------------
+# Make the dependencies
+
+.PHONY: depend dep
+depend dep:    $(OBJS:.o=.c)
+       @echo "Creating dependency information"
+       $(CC) -MM $^ > .depend
+
+