test/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Apr 17 21:09:55 2009 +0100 (2009-04-17)
changeset 357 39f8dab73084
parent 351 48b0adfe3059
child 359 c9c90315ea24
permissions -rw-r--r--
Add hashtable test to expose confusion as to whether 0 is a valid value or not
     1 ## Process this file with automake to produce Makefile.in
     2 
     3 check_SCRIPTS = relocate
     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 lua:	lua.sh primary.xml.gz
    12 	cp $(srcdir)/lua.sh lua
    13 
    14 primary.xml.gz:	zsh.spec zip.spec zap.spec filesystem.spec Makefile
    15 	rm -rf rpmbuild rpms repodata
    16 	mkdir -p rpmbuild/BUILD rpmbuild/RPMS
    17 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zap.spec
    18 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zip.spec
    19 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zsh.spec
    20 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/filesystem.spec
    21 	mkdir rpms
    22 	mv rpmbuild/RPMS/noarch/*.rpm rpms
    23 	rm -rf rpmbuild
    24 	createrepo -o . rpms
    25 	cp repodata/primary.xml.gz repodata/filelists.xml.gz .
    26 
    27 TESTS = $(check_SCRIPTS)
    28 
    29 EXTRA_DIST = 			\
    30 	zap.spec		\
    31 	zip.spec		\
    32 	zsh.spec		\
    33 	filesystem.spec		\
    34 	lua.sh			\
    35 	relocate.sh
    36 
    37 clean-local :
    38 	rm -f *~
    39