test/Makefile.am
author J. Ali Harlow <ali@juiblex.co.uk>
Thu Jan 22 22:54:45 2009 +0000 (2009-01-22)
changeset 351 48b0adfe3059
child 352 4866573c6944
permissions -rw-r--r--
Implement relocatations when installing rpms.
     1 ## Process this file with automake to produce Makefile.in
     2 
     3 check_SCRIPTS = relocate
     4 
     5 relocate:	relocate.sh primary.xml.gz
     6 	cp $(srcdir)/relocate.sh relocate
     7 
     8 primary.xml.gz:	zsh.spec zip.spec zap.spec Makefile
     9 	rm -rf rpmbuild rpms repodata
    10 	mkdir -p rpmbuild/BUILD rpmbuild/RPMS
    11 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zap.spec
    12 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zip.spec
    13 	rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zsh.spec
    14 	mkdir rpms
    15 	mv rpmbuild/RPMS/noarch/*.rpm rpms
    16 	rm -rf rpmbuild
    17 	createrepo -o . rpms
    18 	cp repodata/primary.xml.gz repodata/filelists.xml.gz .
    19 
    20 TESTS = $(check_SCRIPTS)
    21 
    22 EXTRA_DIST = 			\
    23 	zap.spec		\
    24 	zip.spec		\
    25 	zsh.spec		\
    26 	relocate.sh
    27 
    28 clean-local :
    29 	rm -f *~
    30