Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sample makefile to generate phpdocs

The php documentation requires phpdoc to be installed

Signed-off-by: Jimmy Tang <jtang@tchpc.tcd.ie>
  • Loading branch information...
commit 52c6ade9c2f52ff5ff7002a0b1b9f19728f6fd55 1 parent d93f0c7
Jimmy Tang authored
Showing with 26 additions and 0 deletions.
  1. +2 −0  doc/.gitignore
  2. +24 −0 doc/Makefile
View
2  doc/.gitignore
@@ -0,0 +1,2 @@
+php
+.docs-available
View
24 doc/Makefile
@@ -0,0 +1,24 @@
+PHPDOC:=$(shell \
+ if phpdoc -h > /dev/null ; then \
+ echo phpdoc; \
+ touch .docs-available; \
+ else \
+ echo "Warning: phpdoc not installed, can't generate html output." >&2; \
+ echo "@echo Skipping: phpdoc"; \
+ rm .docs-available; \
+ fi)
+
+default: php
+
+php:
+ $(PHPDOC) --output HTML:frames:phpedit \
+ --directory ../examples \
+ --packageoutput c,includes,objects \
+ --target php \
+ --sourcecode \
+ --title "php-slurm"
+
+clean:
+ -rm -rf php .docs-available
+
+.PHONY: php
Please sign in to comment.
Something went wrong with that request. Please try again.