aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: fcd376ce3bd21b00802c7317a9a9abf0b9af28c2 (plain) (tree)
1
2
3
4
5
6
7
8





            

                                           







                                


                                        


                                       


                                                                  


                               
.POSIX:

BIN := ./bin
SRC := ./src
OUT := ./out
TMP := ./tmp
REMOTE := root@dc0
REMOTE_DIR := /var/www/htdocs/rgoncalves.se
BASE_URL = https://rgoncalves.se

.PHONY: all \
	website \
	clean

all: clean website

local: clean
	BASE_URL=$$PWD/$(OUT) $(BIN)/ssg

website: clean
	BASE_URL=$(BASE_URL) $(BIN)/ssg

deploy: website
	rsync -e ssh -avz --delete $(OUT)/ $(REMOTE):$(REMOTE_DIR)
	ssh $(REMOTE) chown -R www:www $(REMOTE_DIR)

clean:
	- rm -r $(OUT) $(TMP)/*
remember that computers suck.