aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-24 09:26:53 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-24 09:26:53 +0000
commit7c20abe39de7bf770d7b1fed1e7607d72cfed8c5 (patch)
treebc9588a4c07b99dd5af22f981e53871b1dc6665e /doc/Makefile
parent5e65c66f550a7f3a9218c7bd7493e9c07647193d (diff)
downloadusdx-7c20abe39de7bf770d7b1fed1e7607d72cfed8c5.tar.gz
usdx-7c20abe39de7bf770d7b1fed1e7607d72cfed8c5.tar.xz
usdx-7c20abe39de7bf770d7b1fed1e7607d72cfed8c5.zip
pasdoc support added
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1412 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 00000000..bfb4596c
--- /dev/null
+++ b/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