From 9b7df0b6494871ba34b83bd5f0c1a28546fa7278 Mon Sep 17 00:00:00 2001 From: Paul Cochrane Date: Mon, 17 Sep 2018 22:40:02 +0200 Subject: [PATCH] Add Makefile to build common commands more easily --- Makefile | 7 +++++++ README | 10 +++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..55b2ab0 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: site show-site + +site: + ttree -a -v -l LIB -f .ttreerc -s . -d /tmp/yef + +show-site: + firefox file:///tmp/yef/index.html diff --git a/README b/README index 85edfd0..c44b4e9 100644 --- a/README +++ b/README @@ -6,11 +6,15 @@ $> git clone https://github.com/yapceurope/yef-www/ # Change location. $> cd yef-www/ -# Make sure you have Template::Plugin::YAML installed. -# Run the Template Toolkit commandline tool to build the site. +# Build the site +$> make site +or $> ttree -a -v -l LIB -f .ttreerc -s . -d /tmp/yef -# Point your browser at the newly created (local) site. +# View the local site in Firefox +$> make show-site + +# Alternatively, point your browser at the newly created (local) site directly $> firefox file:///tmp/yef/index.html # Not sure why, but on my box, all links point to /home/yapc/public_html