summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-08-28 14:37:56 +0200
committerJonas Smedegaard <dr@jones.dk>2016-08-28 14:37:56 +0200
commitbae58eec41f087e980f4690650dbaaae747fa059 (patch)
tree69e673e8fb4dc5a2527341ff612b199aea9d51ff /sample
parentd38ae6faad47480334bef34bde47dfa41c03a11f (diff)
Fix include library (with helpful error message) in sample makefile.
Diffstat (limited to 'sample')
-rw-r--r--sample/Makefile12
1 files changed, 8 insertions, 4 deletions
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