aboutsummaryrefslogtreecommitdiffstats
path: root/unicode/doc
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-31 15:55:19 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-31 15:55:19 +0000
commitb3353a82da64f18f1a7787004a31e45edf40dc87 (patch)
tree2e36246d58bf5993b17f293b1dbd62c22dd468f3 /unicode/doc
parent9a513d190c693745328ff5d04b5ad67ea0fc831a (diff)
downloadusdx-b3353a82da64f18f1a7787004a31e45edf40dc87.tar.gz
usdx-b3353a82da64f18f1a7787004a31e45edf40dc87.tar.xz
usdx-b3353a82da64f18f1a7787004a31e45edf40dc87.zip
unicode branch added
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1492 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'unicode/doc')
-rw-r--r--unicode/doc/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/unicode/doc/Makefile b/unicode/doc/Makefile
new file mode 100644
index 00000000..bfb4596c
--- /dev/null
+++ b/unicode/doc/Makefile
@@ -0,0 +1,30 @@
+MKDIR ?= mkdir -p
+RM ?= rm -f
+RM_REC ?= $(RM) -r
+
+PASDOC ?= pasdoc$(EXEEXT)
+
+DOCDIR ?= ./pasdoc
+SRCDIR := ../src
+INCLUDE := -I$(SRCDIR)
+DEFINES := -DPASDOC
+SRCFILES := $(SRCDIR)/base/*.pas \
+ $(SRCDIR)/screens/*.pas \
+ $(SRCDIR)/menu/*.pas \
+ $(SRCDIR)/media/*.pas
+
+.PHONY: all
+all: doc
+
+.PHONY: doc
+doc: clean
+ $(MKDIR) $(DOCDIR)
+# pasdoc does not return a meaningful exit code (e.g. an error code on success) so always return true
+ $(PASDOC) --staronly --ignore-leading=* $(INCLUDE) $(DEFINES) --output=$(DOCDIR) $(SRCFILES); true
+# check if doc was created
+ @test -f $(DOCDIR)/index.html
+
+.PHONY: clean
+clean:
+ $(RM) $(DOCDIR)/*.html $(DOCDIR)/*.css $(DOCDIR)/*.gif
+ -rmdir $(DOCDIR) \ No newline at end of file