1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-01-15 17:28:25 +01:00
antd-web-apps/apps/Makefile

28 lines
874 B
Makefile
Raw Normal View History

2018-08-20 11:21:58 +02:00
BUILDDIR = ../build/apps
2018-08-28 14:49:03 +02:00
copyfiles = router.lua controllers logs views models
coffees = assets/coffee/bootstrap.coffee \
assets/coffee/BaseObject.coffee \
assets/coffee/APIManager.coffee \
assets/coffee/MarkOn.coffee \
2018-09-17 19:43:24 +02:00
assets/coffee/WVNC.coffee
2018-08-28 14:49:03 +02:00
main: js
- mkdir -p $(BUILDDIR)/assets
2018-08-20 11:21:58 +02:00
cp -rf $(copyfiles) $(BUILDDIR)
2018-08-28 14:49:03 +02:00
cp -r assets/css assets/scripts $(BUILDDIR)/assets
2018-08-20 11:21:58 +02:00
- cd $(BUILDDIR) && ln -s ../grs ./rst
2018-08-28 14:49:03 +02:00
js:
2018-09-18 19:53:00 +02:00
- rm assets/scripts/main.*
2018-08-28 14:49:03 +02:00
for f in $(coffees); do (cat "$${f}"; echo) >> assets/scripts/main.coffee; done
coffee --compile assets/scripts/main.coffee
2018-09-20 20:02:22 +02:00
coffee --compile assets/coffee/decoder.coffee
sed '2d' assets/coffee/decoder.js > assets/scripts/tmp.js
head -n -1 assets/scripts/tmp.js > assets/scripts/decoder.js
-rm assets/coffee/decoder.js
-rm assets/scripts/tmp.js
2018-09-17 19:43:24 +02:00
-rm assets/scripts/main.coffee
2018-08-28 14:49:03 +02:00
2018-08-20 11:21:58 +02:00
clean:
rm -rf $(BUILDDIR)/*