From 6bae44bacfba0f6ecf8d43ed2f11792b9571e58d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 18 Jun 2021 14:20:46 +0530 Subject: Copy manual to website in a separate target. * Makefile.am (website/manual/dev/en): New target. (website): Depend on website/manual/dev/en instead of building directly. Do not depend on phony target html. --- Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6ff6a64..df0ca5f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -72,13 +72,16 @@ EXTRA_DIST += \ COPYING \ README.org -website: html website/index.html - mkdir -p website/manual/dev - cp -vr doc/guile-email.html website/manual/dev/en +website: website/index.html website/manual/dev/en website/index.html: README.org mkdir -p website emacs -Q --script build-website.el +website/manual/dev/en: doc/guile-email.html + rm -rf $@ + $(MKDIR_P) $(dir $@) + cp -vr $< $@ + clean-local: rm -rf website/index.html website/manual/dev/en -- cgit v1.2.3