tadd destdir to makefile - mars - superminimal static website framework HTML git clone git://parazyd.org/mars.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 7a02b971da1299d95fe6c6b50b8cc1e14e9f2d7a DIR parent 99346d4006ca8207c115026ec312fb069aff439d HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 24 Jun 2016 10:53:56 +0200 add destdir to makefile Diffstat: M Makefile | 8 +++++--- M README.md | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) --- DIR diff --git a/Makefile b/Makefile t@@ -1,3 +1,5 @@ +DESTDIR = /var/www/html + all: @./mars.sh generate push: all t@@ -5,9 +7,9 @@ push: all clean: @./mars.sh clean install: - cp -f Makefile ${DESTDIR}/Makefile - cp -f mars.sh ${DESTDIR}/mars.sh + cp -f Makefile ${DESTDIR}/Makefile + cp -f mars.sh ${DESTDIR}/mars.sh cp -f rsync-exclude ${DESTDIR}/rsync-exclude - cp -f webtree ${DESTDIR}/webtree + cp -f webtree ${DESTDIR}/webtree .PHONY: all push clean install DIR diff --git a/README.md b/README.md t@@ -8,10 +8,11 @@ scripts or markdown pages. you are supposed to drop the files in this repository in the root of the website where you manage your php/markdown and use the provided makefile. -for ease of use, the makefile provides an install target: +for ease of use, the makefile provides an install target (just edit the Makefile +and specify the correct DESTDIR - the path to your web root): ``` -; DESTDIR=/path/to/your/webroot make install +; make install ``` mars for markdown depends on `python-markdown`, and for php, well - `php`...