From bae58eec41f087e980f4690650dbaaae747fa059 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 28 Aug 2016 14:37:56 +0200 Subject: Fix include library (with helpful error message) in sample makefile. --- sample/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sample') diff --git a/sample/Makefile b/sample/Makefile index 35f4be9..cd9d521 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -1,6 +1,10 @@ -# Transform content into layout formats - -include /usr +# A layout project using Couchdesign content transformation # content -texts = +texts = front chapter1 chapter2 chapter3 caption1 caption2 + +# include shared code +$(if $(wildcard $(COUCHDIR)),,\ + $(info ERROR: Add e.g. this to ~/.bashrc: export COUCHDIR=~/src/COUCH)\ + $(error cannot load shared code)) +include $(COUCHDIR)/layout/lib/content.mk -- cgit v1.2.3