瀏覽代碼

Build haxedoc and haxelib from the Makefile.

This used to be in here, but was lost when the Makefile was regenerated. Feel
free to revert if that was intentional.
Bruno Garcia 13 年之前
父節點
當前提交
3f0bb8da30
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -30,7 +30,7 @@ MODULES=ast type lexer common genxml parser typecore optimizer typeload \
 	codegen genas3 gencommon gencpp genjs genneko genphp genswf8 \
 	gencs genjava genswf9 interp genswf typer main
 
-all: libs haxe
+all: libs haxe tools
 
 libs:
 	(cd libs/extlib; make opt)
@@ -42,6 +42,10 @@ libs:
 haxe: $(MODULES:=.cmx)
 	$(OCAMLOPT) -o $(OUTPUT) $(NATIVE_LIBS) $(LIBS) $(MODULES:=.cmx)
 
+tools:
+	(cd std/tools/haxedoc && haxe haxedoc.hxml && cp haxedoc ../../..)
+	(cd std/tools/haxelib && haxe haxelib.hxml && cp haxelib ../../..)
+
 export:
 	cp haxe*.exe doc/CHANGES.txt $(EXPORT)
 	rsync -a --exclude .svn --exclude *.n --exclude std/mt --exclude std/mtwin --delete std $(EXPORT)