~tardypad/tardypad.me

ref: 3583bee9b3712202a330f02844308a8b2d9e280b tardypad.me/main/Makefile -rw-r--r-- 1.2 KiB
3583bee9Damien Tardy-Panis carl: add reverse proxy config 7 months ago
                                                                                
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
build:
	mkdir -p build
	sed -e '/logo.svg/ {r root/logo.svg' -e 'd }' root/index.html > build/index.html
	sed -e '/resume_header.html/ {r root/includes/resume_header.html' -e 'd }' \
		-e '/resume_about.html/ {r root/includes/resume_about.html' -e 'd }' \
		-e '/resume_education.html/ {r root/includes/resume_education.html' -e 'd }' \
		-e '/resume_languages.html/ {r root/includes/resume_languages.html' -e 'd }' \
		-e '/resume_personal.html/ {r root/includes/resume_personal.html' -e 'd }' \
		-e '/resume_bbraun.html/ {r root/includes/resume_bbraun.html' -e 'd }' \
		-e '/resume_smile.html/ {r root/includes/resume_smile.html' -e 'd }' \
		-e '/resume_m2mobi.html/ {r root/includes/resume_m2mobi.html' -e 'd }' \
		-e '/resume_leaseweb.html/ {r root/includes/resume_leaseweb.html' -e 'd }' \
		root/resume.html > build/resume.html
	cp root/style.css build/
	ln -sf resume.html build/resume

install:
	mkdir -p $(DESTDIR)/srv/http/main
	cp -r root/* $(DESTDIR)/srv/http/main
	mkdir -p $(DESTDIR)/etc/nginx/http.d
	cp nginx.conf $(DESTDIR)/etc/nginx/http.d/main.conf

watch:
	find root/ src/ -type f | entr -c make

deploy:
	rsync -az --delete root/ chestnut:/srv/http/main/

clean:
	rm -rf build

.PHONY: build clean deploy install watch