test/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Thu Mar 12 20:23:35 2009 +0000 (2009-03-12)
changeset 355 cf0fdfe5bca2
parent 351 48b0adfe3059
child 359 c9c90315ea24
permissions -rw-r--r--
Don't list libcurl as a requirement in the .pc file
since it's not needed by librazor.
     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