diff --git a/.gitignore b/.gitignore index 88b16f5..809286c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ out +doc* *-internal.h # Object files diff --git a/Makefile b/Makefile index d3de887..58587c1 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ SRC_DIR = retro OUT_DIR = out VAPI_DIR = vapi +DOC_DIR = doc NAME=Retro DESC=GObject based libretro wrapper @@ -76,6 +77,7 @@ OUT= \ $(NULL) VALAC_OPTIONS= --save-temps +VALADOC_OPTIONS= all: $(OUT) $(OUT_DIR)/$(DEPS) $(OUT_DIR)/$(TYPELIB) $(OUT_DIR)/$(PKGCONF) @@ -125,8 +127,23 @@ install: install $(OUT_DIR)/$(DEPS) $(DEPS_DIR) install $(OUT_DIR)/$(VAPI) $(DEPS_DIR) +doc: doc-vala + +doc-vala: $(DOC_DIR)-vala/$(PKGNAME) + +$(DOC_DIR)-vala/$(PKGNAME): $(SRC) + rm -Rf $@ + mkdir -p $(@D) + valadoc \ + -b $(