forked from dlang/dconf.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 996 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
42
43
44
45
#SITE=erdani.com:www/d/
SITE = [email protected]:data/
DMD = dmd
OUT = out
all: $(OUT)/index.html 2013/all 2014/all 2015/all 2016/all 2017/all 2018/all
.PHONY: rsync
rsync : all
rsync -avz -p $(OUT)/* $(SITE)
# Travis deployment
.PHONY: deploy
deploy : all
rsync -vr --omit-dir-times out/ [email protected]:/usr/local/www/dconf.org/data || true
ssh [email protected] "chmod -R g+w /usr/local/www/dconf.org/data" || true
.PHONY: clean
clean: 2013/clean 2014/clean
rm -rf out
rm -rf 20??/.tmp
# Patterns
2013/%:
$(MAKE) DMD=$(DMD) --directory=2013 OUT=../$(OUT)/2013 $*
2014/%:
$(MAKE) DMD=$(DMD) --directory=2014 OUT=../$(OUT)/2014 $*
2015/%:
$(MAKE) DMD=$(DMD) --directory=2015 OUT=../$(OUT)/2015 $*
2016/%:
$(MAKE) DMD=$(DMD) --directory=2016 OUT=../$(OUT)/2016 $*
2017/%:
$(MAKE) DMD=$(DMD) --directory=2017 OUT=../$(OUT)/2017 $*
2018/%:
$(MAKE) DMD=$(DMD) --directory=2018 OUT=../$(OUT)/2018 $*
$(OUT)/%: %
mkdir -p $(OUT)
cp $< $@