1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-26 09:28:22 +01:00
antd-web-apps/Makefile
Xuan Sang LE effcedb94e clean up
2021-03-06 13:09:48 +01:00

23 lines
675 B
Makefile

BUILDDIR?=./build
PROJS?=grs info blog os doc talk get
copyfiles = index.ls mimes.json
main: copy
for f in $(PROJS); do BUILDDIR=$(BUILDDIR)/"$${f}" make -C "$${f}" ; done
copy:
cp -rf $(copyfiles) $(BUILDDIR)
cp -r silk $(BUILDDIR)
ar:
-[ -d /tmp/antd_web_apps ] && rm -r /tmp/antd_web_apps
-[ -f /tmp/antd_web_apps.tar.gz ] && rm /tmp/antd_web_apps.tar.gz
mkdir /tmp/antd_web_apps
BUILDDIR=/tmp/antd_web_apps make
cd /tmp/antd_web_apps && tar cvzf ../antd_web_apps.tar.gz .
mv /tmp/antd_web_apps.tar.gz dist/
clean:
-for f in $(PROJS); do rm -r $(BUILDDIR)/"$${f}"; done
-for f in $(copyfiles); do rm -r $(BUILDDIR)/"$${f}"; done
-rm -r $(BUILDDIR)/silk