1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-28 10:18:22 +01:00
antd-web-apps/apps/Makefile

23 lines
623 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-08-20 11:21:58 +02:00
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:
- rm assets/scripts/main.js
for f in $(coffees); do (cat "$${f}"; echo) >> assets/scripts/main.coffee; done
coffee --compile assets/scripts/main.coffee
- rm assets/scripts/main.coffee
2018-08-20 11:21:58 +02:00
clean:
rm -rf $(BUILDDIR)/*