Browse Source

really fix it

frabbit 8 years ago
parent
commit
d47be0e3b3
1 changed files with 8 additions and 5 deletions
  1. 8 5
      Makefile

+ 8 - 5
Makefile

@@ -227,11 +227,14 @@ install_dox:
 
 package_doc:
 	mkdir -p $(PACKAGE_OUT_DIR)
-	cd $$(haxelib path dox | head -n 1) && haxe run.hxml && haxe gen.hxml && \
-	haxe -lib hxtemplo -lib hxparse -lib hxargs -lib markdown -cp src -dce no \
-		--run dox.Dox -theme haxe_api -D website "http://haxe.org/" --title "Haxe API" \
-		-o $(PACKAGE_OUT_DIR_ABSOLUTE)/$(PACKAGE_FILE_NAME)_doc.zip -D version "$$(haxe -version 2>&1)" \
-		-i bin/xml -ex microsoft -ex javax -ex cs.internal \
+	$(eval outfile := `$(shell pwd)/$(PACKAGE_OUT_DIR)/$(PACKAGE_FILE_NAME)_doc.zip`)
+	cd $$(haxelib path dox | head -n 1) && \
+		haxe run.hxml && \
+		haxe gen.hxml && \
+		haxe -lib hxtemplo -lib hxparse -lib hxargs -lib markdown \
+		-cp src -dce no --run dox.Dox -theme haxe_api -D website "http://haxe.org/" \
+		--title "Haxe API" -o $(outfile) \
+		-D version "$$(haxe -version 2>&1)" -i bin/xml -ex microsoft -ex javax -ex cs.internal \
 		-D source-path https://github.com/HaxeFoundation/haxe/blob/$(BRANCH)/std/
 
 deploy_doc: