diff options
Diffstat (limited to 'odk/CustomTarget_check.mk')
-rw-r--r-- | odk/CustomTarget_check.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/odk/CustomTarget_check.mk b/odk/CustomTarget_check.mk index 16e50ec4cc1a..3f06bd43fab9 100644 --- a/odk/CustomTarget_check.mk +++ b/odk/CustomTarget_check.mk @@ -10,6 +10,7 @@ $(eval $(call gb_CustomTarget_CustomTarget,odk/check)) $(eval $(call gb_CustomTarget_register_targets,odk/check,\ + autodoc \ checkbin \ )) @@ -54,4 +55,20 @@ $(call gb_CustomTarget_get_workdir,odk/check)/checkbin : \ ,$@.log \ ) +.PHONY : $(call gb_CustomTarget_get_workdir,odk/check)/autodoc +$(call gb_CustomTarget_get_workdir,odk/check)/autodoc : $(call gb_PackageSet_get_target,odk_autodoc) + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1) + ( \ + c=0 && \ + for m in `find $(call gb_CustomTarget_get_workdir,odk/docs/common/ref) -name module-ix.html`; do \ + m=`echo $$m | sed -e s@$(call gb_CustomTarget_get_workdir,odk/docs/common/ref)/@@` && \ + mm=$(INSTDIR)/$(gb_Package_SDKDIRNAME)/docs/common/ref/$${m} && \ + if [ ! -e $${mm} ]; then \ + c=`expr $$c + 1`; \ + echo "autodoc check: $${mm} not found. Please update odk/Package_autodoc.mk ."; \ + fi \ + done && \ + if [ $${c} -gt 0 ]; then exit 1; fi \ + ) + # vim: set noet sw=4 ts=4: |