-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (40 loc) · 1.27 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
# hortont.com build system
.IGNORE:
.SILENT:
baseurl=$(shell PYTHONPATH=build python -c 'import settings; print settings.www_prefix')
all: clean unclean copy-data build-parallel
python ./build/stats.py
clean:
rm -rf output
unclean:
mkdir output
build-parallel:
sh ./build/parallelBuild.sh
all-serial: clean unclean copy-data
python ./build/buildPosts.py
python ./build/buildStatic.py
python ./build/buildArchive.py
python ./build/buildRSS.py
python ./build/buildEverything.py
python ./build/buildHistory.py
python ./build/stats.py
new-post:
python ./build/newPost.py
copy-data:
cp -r images output/images
cp -r styles output/styles
python ./build/substituteSettings.py output/styles
python ./build/cssmin.py output/styles
check-links:
python ./build/testLinks.py
push:
rm -rf /tmp/whatmannerofburgeristhis.com
cd /tmp ; git clone [email protected]:hortont424/whatmannerofburgeristhis.com
cd /tmp/whatmannerofburgeristhis.com ; make ; rsync -a --progress /tmp/whatmannerofburgeristhis.com/output/ hortont.com:/srv/matt
preview:
open -a /Applications/Safari.app http://localhost:12345/
cd output ; python -m SimpleHTTPServer 12345
deploy:
docker build -t hortont/wmobitcom deploy/
docker push hortont/wmobitcom
.PHONY: all clean copy-data push all-serial preview deploy