-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 879 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
default : render
.PHONY : clean render
render : clean html/index.html html/stylesheets html/images
clean :
rm -rf html
rm -rf public
# Build all the assets in the html directory
html/index.html : render.coffee src/index.eco
mkdir -p html
./node_modules/.bin/coffee render.coffee > html/index.html
html/stylesheets : src/stylesheets/screen.less
mkdir -p html/stylesheets
./node_modules/.bin/lessc --yui-compress src/stylesheets/screen.less > html/stylesheets/screen.css
html/images: src/images/old_mathematics.png
mkdir -p html/images
cp src/images/old_mathematics.png html/images/old_mathematics.png
# Update the public repository
public : render
git clone [email protected]:demandforce/demandforce.github.com.git public
rm -rf public/*
mv html/* public/
publish : public
cd public && \
git add --all && \
git commit -m "Update for $(date)" && \
git push