# # Makefile for creating distributables and Duktape website # # When creating actual distributables, always clean first. # VERSION=0.8.0 DISTSRCSEP = dist/src-separate DISTSRCCOM = dist/src DISTCMD = dist/examples/cmdline clean: -@rm -rf dist/ -@rm -rf full/ -@rm -rf site/ -@rm -rf duktape-$(VERSION)/ -@rm -f duktape-$(VERSION).tar* -@rm -f duktape-$(VERSION).iso -@rm -rf duktape-full-$(VERSION)/ -@rm -f duktape-full-$(VERSION).tar* -@rm -rf duktape-site-$(VERSION)/ -@rm -f duktape-site-$(VERSION).tar* # Source distributable for end users dist: sh make_dist.sh dist-src: dist rm -rf duktape-$(VERSION) rm -rf duktape-$(VERSION).tar* mkdir duktape-$(VERSION) cp -r dist/* duktape-$(VERSION)/ tar cvfj duktape-$(VERSION).tar.bz2 duktape-$(VERSION)/ tar cvf duktape-$(VERSION).tar duktape-$(VERSION)/ xz -z -e -9 duktape-$(VERSION).tar mkisofs -o duktape-$(VERSION).iso duktape-$(VERSION).tar.bz2 # Full distributable full: sh make_full.sh dist-full: full rm -rf duktape-full-$(VERSION) rm -rf duktape-full-$(VERSION).tar* mkdir duktape-full-$(VERSION) cp -r full/* duktape-full-$(VERSION)/ tar cvfj duktape-full-$(VERSION).tar.bz2 duktape-full-$(VERSION)/ tar cvf duktape-full-$(VERSION).tar duktape-full-$(VERSION)/ xz -z -e -9 duktape-full-$(VERSION).tar mkisofs -o duktape-full-$(VERSION).iso duktape-full-$(VERSION).tar.bz2 # Website site: rm -rf site mkdir site cd website/; python buildsite.py ../site/ -@rm -rf /tmp/site/ cp -r site /tmp/ # FIXME dist-site: site rm -rf duktape-site-$(VERSION) rm -rf duktape-site-$(VERSION).tar* mkdir duktape-site-$(VERSION) cp -r site/* duktape-site-$(VERSION)/ tar cvf duktape-site-$(VERSION).tar duktape-site-$(VERSION)/ xz -z -e -9 duktape-site-$(VERSION).tar