-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (33 loc) · 1020 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# target: help - Displays help with targets available.
.PHONY: help
help:
@echo "Usage:"
@echo " make [target] ..."
@echo "target:"
@egrep "^# target:" Makefile | sed 's/# target: / /g'
# target: publish - Updates, builds and publishes homepage
.PHONY: publish
publish: build
rsync -av output/ [email protected]:/var/www/emilfolino.se/html/
/usr/bin/php sitemap/sitemap-generator.php
rsync -av sitemap.xml [email protected]:/var/www/emilfolino.se/html/
# target: update - Updates repo and composer modules
.PHONY: update
update:
git pull
composer install
composer update
# target: build - Builds scss and html pages
.PHONY: build
build:
rm -rf output/*
mkdir -p output/articles/
mkdir -p output/static/
cp -r fonts output/
cp -r img output/
cp -r favicon/* output/
cp -r pubs output/
cp -r static/* output/static/
cp robots.txt output/
#sass base.scss output/style.min.css --style compressed
/usr/bin/php compiler.php