mars

superminimal static website framework
git clone git://parazyd.org/mars.git
Log | Files | Refs | README | LICENSE

commit 7a02b971da1299d95fe6c6b50b8cc1e14e9f2d7a
parent 99346d4006ca8207c115026ec312fb069aff439d
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 24 Jun 2016 10:53:56 +0200

add destdir to makefile

Diffstat:
MMakefile | 8+++++---
MREADME.md | 5+++--
2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,3 +1,5 @@ +DESTDIR = /var/www/html + all: @./mars.sh generate push: all @@ -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 diff --git a/README.md b/README.md @@ -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`...