-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 1.09 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
WP_THEME=website/wp-content/themes/smr
all:
clear
make css
make js
make html
install:
npm install -g jade
npm install -g stylus
npm install -g component
bash install.sh
html:
jade sources/views/index.jade -O website/
local-update:
`cat data/metalsmr_database.sql | sed 's/metalurgica-smr.com.ar/localhost\/metalurgica-smr/g' > data/local.sql`
db-update:
mysqldump -u root -pfackin --opt metalsmr_mysql > data/dump.sql
`cat data/dump.sql | sed 's/localhost\/metalurgica-smr/metalurgica-smr.com.ar/g' > data/production.sql`
css:
cp sources/javascript/build/build.css sources/javascript/build/build.styl
stylus sources/styles/style.styl -o $(WP_THEME)
js:
cd sources/javascript; make build; cp build/build.js ../../$(WP_THEME)/js/main.js
clean-js:
rm -fr sources/javascript/build sources/javascript/components sources/javascript/template.js
ftp-push:
clear
make all
git ftp push -u {place-user} -p {place-password} ftp://{place-site-address}
stage-deploy:
git deploy stage
## tools/push-compiled
deploy:
git push origin master
make ftp-push
.PHONY: install html all css clean-js