git clone git://git.garbash.com/alex/www
Log | Files | Refs | README | LICENSE

commit 092ac938fc45595e96f1b305d1007bd739ff1b94
parent 8fc5c8e7aa3361dd78741e6bfe4e9855013ab9df
Author: alex <alex@garbash.com>
Date:   Sun, 24 Oct 2021 23:58:02 -0400

make: Add install recipe

Now that I'm building markdown, I don't want the src AND the html
served up via the website (of course, the markdown is served by
git.garbash.com, but it feels cleaner to have only the intended files
served for the website). As such, I've moved the repo to my home
directory and am now just `make installing` when I want to publish.

This of course has other benefits too, like:

* I can make-clean away the html for a clean directory
* I can test out the buildpage script without it changing the live site

MMakefile | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,12 +1,18 @@ BUILT = index.html root-index.html -all: $(BUILT) +build: $(BUILT) clean: rm -f $(BUILT) +install: build + mkdir -p /var/www/htdocs/~alex/notes + install -m 444 $(BUILT) /var/www/htdocs/~alex + install -m 444 notes/*.txt /var/www/htdocs/~alex/notes + + .SUFFIXES: .md .html .md.html: ./bin/buildpage $< > $@ -.PHONY: all clean +.PHONY: all clean install