webmcp

diff Makefile @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children 30391b40722f
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +include Makefile.options
     1.5 +
     1.6 +all::
     1.7 +	make documentation
     1.8 +	make accelerator
     1.9 +	make libraries
    1.10 +	make symlinks
    1.11 +	make precompile
    1.12 +
    1.13 +documentation::
    1.14 +	rm -f doc/autodoc.tmp
    1.15 +	lua framework/bin/autodoc.lua framework/cgi-bin/ framework/env/ libraries/ > doc/autodoc.tmp
    1.16 +	cat doc/autodoc-header.htmlpart doc/autodoc.tmp doc/autodoc-footer.htmlpart > doc/autodoc.html
    1.17 +	rm -f doc/autodoc.tmp
    1.18 +
    1.19 +accelerator::
    1.20 +	cd framework/accelerator; make
    1.21 +
    1.22 +libraries::
    1.23 +	cd libraries/extos; make
    1.24 +	cd libraries/mondelefant; make
    1.25 +	cd libraries/multirand; make
    1.26 +
    1.27 +symlinks::
    1.28 +	ln -s -f ../../libraries/atom/atom.lua framework/lib/
    1.29 +	ln -s -f ../../libraries/extos/extos.so framework/lib/
    1.30 +	ln -s -f ../../libraries/mondelefant/mondelefant.lua framework/lib/
    1.31 +	ln -s -f ../../libraries/mondelefant/mondelefant_native.so framework/lib/
    1.32 +	ln -s -f ../../libraries/mondelefant/mondelefant_atom_connector.lua framework/lib/
    1.33 +	ln -s -f ../../libraries/multirand/multirand.so framework/lib/
    1.34 +	ln -s -f ../../libraries/rocketcgi/rocketcgi.lua framework/lib/
    1.35 +	ln -s -f ../../libraries/nihil/nihil.lua framework/lib/
    1.36 +	ln -s -f ../../libraries/luatex/luatex.lua framework/lib/
    1.37 +
    1.38 +precompile::
    1.39 +	rm -Rf framework.precompiled
    1.40 +	rm -Rf demo-app.precompiled
    1.41 +	sh framework/bin/recursive-luac framework/ framework.precompiled/
    1.42 +	rm -f framework.precompiled/accelerator/Makefile
    1.43 +	rm -f framework.precompiled/accelerator/webmcp_accelerator.c
    1.44 +	rm -f framework.precompiled/accelerator/webmcp_accelerator.o
    1.45 +	framework/bin/recursive-luac demo-app/ demo-app.precompiled/
    1.46 +
    1.47 +clean::
    1.48 +	rm -f doc/autodoc.tmp doc/autodoc.html
    1.49 +	rm -Rf framework.precompiled
    1.50 +	rm -Rf demo-app.precompiled
    1.51 +	rm -f demo-app/tmp/*
    1.52 +	rm -f framework/lib/*
    1.53 +	cd libraries/extos; make clean
    1.54 +	cd libraries/mondelefant; make clean
    1.55 +	cd libraries/multirand; make clean
    1.56 +	cd framework/accelerator; make clean

Impressum / About Us