|
@@ -716,19 +716,13 @@ release:
|
|
define GENDOC_INNER
|
|
define GENDOC_INNER
|
|
$(1): $(1)-$(3)
|
|
$(1): $(1)-$(3)
|
|
.PHONY: $(1)-$(3)
|
|
.PHONY: $(1)-$(3)
|
|
-$(1)-$(3): $$(O)/docs/$(1)/$(2)/$(1).$(4)
|
|
|
|
|
|
+$(1)-$(3): $$(O)/docs/$(1)/$(1).$(4)
|
|
|
|
|
|
-$$(O)/docs/$(1)/$(2)/$(1).$(4): docs/$(1)/$(1).txt $$($(call UPPERCASE,$(1))_SOURCES)
|
|
|
|
|
|
+$$(O)/docs/$(1)/$(1).$(4): docs/$(1)/$(1).txt $$($(call UPPERCASE,$(1))_SOURCES)
|
|
@echo "Generating $(5) $(1)..."
|
|
@echo "Generating $(5) $(1)..."
|
|
$(Q)mkdir -p $$(O)/docs/$(1)/$(2)
|
|
$(Q)mkdir -p $$(O)/docs/$(1)/$(2)
|
|
$(Q)a2x $(6) -f $(2) -d book -L -r $(TOPDIR)/docs/images \
|
|
$(Q)a2x $(6) -f $(2) -d book -L -r $(TOPDIR)/docs/images \
|
|
-D $$(@D) $$<
|
|
-D $$(@D) $$<
|
|
-
|
|
|
|
-clean-$(1): clean-$(1)-$(3)
|
|
|
|
-.PHONY: clean-$(1)-$(3)
|
|
|
|
-clean-$(1)-$(3):
|
|
|
|
- $(Q)$(RM) -rf $(O)/docs/$(1)/$(2)
|
|
|
|
-
|
|
|
|
endef
|
|
endef
|
|
|
|
|
|
################################################################################
|
|
################################################################################
|
|
@@ -746,6 +740,8 @@ $(call GENDOC_INNER,$(1),pdf,pdf,pdf,PDF,--dblatex-opts "-P latex.output.revhist
|
|
$(call GENDOC_INNER,$(1),text,txt,text,Text)
|
|
$(call GENDOC_INNER,$(1),text,txt,text,Text)
|
|
$(call GENDOC_INNER,$(1),epub,epub,epub,EPUB)
|
|
$(call GENDOC_INNER,$(1),epub,epub,epub,EPUB)
|
|
clean: clean-$(1)
|
|
clean: clean-$(1)
|
|
|
|
+clean-$(1):
|
|
|
|
+ $(Q)$(RM) -rf $(O)/docs/$(1)
|
|
.PHONY: $(1) clean-$(1)
|
|
.PHONY: $(1) clean-$(1)
|
|
endef
|
|
endef
|
|
|
|
|