Permalink
Browse files

Adding generation of OPADOC in the Makefile.

  • Loading branch information...
1 parent d9e53e1 commit 52420542b65d49b278e8989c5c8c3daf2d8f06cf @akoprow akoprow committed May 4, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 Makefile
View
@@ -2,7 +2,10 @@ all: main.exe
OPA_COMP = opa
OPA_ARGS =
+OPADOC = opadoc
+
OPA = $(OPA_COMP) $(OPA_ARGS)
+OPADOCAPI = $(OPA_COMP) --api-only
PACK = src/twopenny.opack
@@ -17,11 +20,10 @@ run: main.exe
run.debug: main.exe
./main.exe --db-force-upgrade --debug-editable-js --js-cleaning no --js-renaming no
-doc: main.exe
+doc: $(SRC) clean
$(OPADOCAPI) $(SRC)
- @mv *.api* src
$(OPADOC) src
- @firefox doc/index.html
+ @firefox doc/index.html &
clean:
- rm -rf *.opx *.opx.broken *.exe _tracks _build opa-debug *.log
+ rm -rf *.opx *.opx.broken *.exe _tracks _build opa-debug *.log src/*.api*

0 comments on commit 5242054

Please sign in to comment.