-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (44 loc) · 1.11 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.DEFAULT_GOAL := all
.PHONY: clean
clean:
rm -rf public
.PHONY: pages
pages:
mkdir -p public/blog
# link so we can develop
cp style.css public
cp .htaccess public
cp -R static public
cp -R wp-content public
./pd-pages.sh
.PHONY: blogindex
blogindex:
./indexgenerator.sh
.PHONY: blog
blog: blogindex
./pd-articles.sh
.PHONY: es-kotlin-manual
es-kotlin-manual:
./pd-es-kotlin.sh
.PHONY: run
run:
docker run -dit --name jilles-httpd -p 8080:80 -v "$(shell pwd)/public":/usr/local/apache2/htdocs/ httpd
.PHONY: stop
stop:
docker kill jilles-httpd
.PHONY: minify
minify:
# https://github.com/tdewolff/minify/tree/master/cmd/minify
minify style.css -o public/style.css
.PHONY: sitemap
sitemap:
./sitemap.sh
.PHONY: atom
atom:
./atom.sh
.PHONY: deploy
deploy:
rsync -azp --delete-after public/* jillesvangurpcom@ftp.jillesvangurp.com:/srv/home/jillesvangurpcom/domains/jillesvangurp.com/htdocs/www
rsync -azp --delete-after public/.htaccess jillesvangurpcom@ftp.jillesvangurp.com:/srv/home/jillesvangurpcom/domains/jillesvangurp.com/htdocs
.PHONY: all
all: clean pages blog es-kotlin-manual sitemap atom minify