From d470c081ed7c12c610905bfc4fe1dc37cc797cf2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 4 Jul 2021 19:51:30 +0530 Subject: Makefile: Pass source path to skribilo. * Makefile.am (SKRIBILO_FLAGS): New variable. (doc/ccwl.info, doc/ccwl.html): Pass $(SKRIBILO_FLAGS) to skribilo. --- Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index bd7ec03..ac921b5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -113,16 +113,17 @@ CLEANFILES += doc/*.cwl doc/%.dot doc/*.svg info-local: doc/ccwl.info html-local: doc/ccwl.html +SKRIBILO_FLAGS = --source-path=$(srcdir) CLEANFILES += doc/ccwl.info doc/skribilo.go CLEAN_DIRECTORIES = doc/ccwl.html doc/ccwl.info: doc/ccwl.skb doc/skribilo.go $(DOC_IMAGES) $(DOC_OTHER) - $(SKRIBILO_GEN)$(top_builddir)/pre-inst-env $(SKRIBILO) -t info $< -o $@ + $(SKRIBILO_GEN)$(top_builddir)/pre-inst-env $(SKRIBILO) $(SKRIBILO_FLAGS) -t info $< -o $@ doc/ccwl.html: doc/ccwl.skb doc/skribilo.go $(DOC_IMAGES) $(DOC_OTHER) rm -rf $@ $(MKDIR_P) $@ - $(SKRIBILO_GEN)$(top_builddir)/pre-inst-env $(SKRIBILO) -t html $< -o $@/index.html + $(SKRIBILO_GEN)$(top_builddir)/pre-inst-env $(SKRIBILO) $(SKRIBILO_FLAGS) -t html $< -o $@/index.html cp -vr $(DOC_IMAGES) $@ # The install target depends on the install-data target, which in turn -- cgit v1.2.3