test/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Wed Apr 29 17:00:01 2009 +0100 (2009-04-29)
changeset 361 2523d03a840e
parent 352 4866573c6944
child 363 c75a2d5caae9
permissions -rw-r--r--
Add support for preloading lua modules. This is useful both when
providing lua bindings to applications based on librazor and when
producing static binaries using librazor (where otherwise the lua
POSIX library would need to be included as an additional dynamic
object).
     1 ## Process this file with automake to produce Makefile.in
     2 
     3 check_SCRIPTS = relocate named-root
     4 if HAVE_LUA
     5   check_SCRIPTS += lua
     6 endif
     7 
     8 relocate:	relocate.sh primary.xml.gz
     9 	cp $(srcdir)/relocate.sh relocate
    10 
    11 named-root:	named-root.sh primary.xml.gz
    12 	cp $(srcdir)/named-root.sh named-root
    13 
    14 lua:	lua.sh primary.xml.gz
    15 	cp $(srcdir)/lua.sh lua
    16 
    17 primary.xml.gz:	zsh.spec zip.spec zap.spec filesystem.spec Makefile
    18 	rm -rf rpmbuild rpms repodata
    19 	mkdir -p rpmbuild/BUILD rpmbuild/RPMS
    20 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zap.spec
    21 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zip.spec
    22 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zsh.spec
    23 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/filesystem.spec
    24 	mkdir rpms
    25 	mv rpmbuild/RPMS/noarch/*.rpm rpms
    26 	rm -rf rpmbuild
    27 	createrepo -o . rpms
    28 	cp repodata/primary.xml.gz repodata/filelists.xml.gz .
    29 
    30 TESTS = $(check_SCRIPTS)
    31 
    32 EXTRA_DIST = 			\
    33 	zap.spec		\
    34 	zip.spec		\
    35 	zsh.spec		\
    36 	filesystem.spec		\
    37 	lua.sh			\
    38 	named-root.sh		\
    39 	relocate.sh
    40 
    41 clean-local :
    42 	rm -f *~
    43