aboutsummaryrefslogtreecommitdiffstats
path: root/VideoPreview/doc/Makefile
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-24 13:37:22 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-05-24 13:37:22 +0000
commit4dc8f0ba4f47191fdaefad5c6d42b255d0bbc435 (patch)
treebd38163c7c1684d2ca07afbe5b0a03674ea4e0c3 /VideoPreview/doc/Makefile
parent41e165cc8feebe6e4701f997c80e7722dd7c990c (diff)
downloadusdx-4dc8f0ba4f47191fdaefad5c6d42b255d0bbc435.tar.gz
usdx-4dc8f0ba4f47191fdaefad5c6d42b255d0bbc435.tar.xz
usdx-4dc8f0ba4f47191fdaefad5c6d42b255d0bbc435.zip
branch to merge video preview in song menu
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2411 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--VideoPreview/doc/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/VideoPreview/doc/Makefile b/VideoPreview/doc/Makefile
new file mode 100644
index 00000000..bfb4596c
--- /dev/null
+++ b/VideoPreview/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