Changeset 915


Ignore:
Timestamp:
05/22/13 19:27:35 (8 years ago)
Author:
olahaye
Message:

[Makefile] fixed debian build by disabling the all: dependancies.
dh *@ does trigger a make all, and make all tries to make a tarball and destroys the build dir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/Makefile

    r914 r915  
    3232REQUIRED = ./jobarchived ./jobmond ./web
    3333
    34 all:    tarball rpm srpm deb
     34all:
     35        @echo "Nothing to build."
     36        @echo "possible targets are: tarball, tarball-gzip, tarball-bzip, rpm, srpm, deb, clean"
    3537
    3638tarball:        tarball-gzip tarball-bzip
    3739
    3840$(TMPDIR)/.monarch_buildroot: ${REQUIRED} Makefile
     41        @rm -rf ${TMPDIR}/.monarch_buildroot
    3942        @mkdir -p ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}
    4043        @( rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php \
     
    4952
    5053tarball-gzip:   $(TMPDIR)/.monarch_buildroot ${REQUIRED}
    51         @( cd ${TMPDIR}/.monarch_buildroot; tar zcf ganglia_jobmonarch-${VERSION}.tar.gz ./ganglia_jobmonarch-${VERSION} )
    52         @mv ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.gz ..
     54        @( cd ${TMPDIR}/.monarch_buildroot; tar zcf ${TMPDIR}/ganglia_jobmonarch-${VERSION}.tar.gz ./ganglia_jobmonarch-${VERSION} )
    5355        @rm -rf ${TMPDIR}/.monarch_buildroot
    5456        @echo "Wrote: ../ganglia_jobmonarch-${VERSION}.tar.gz"
     
    5658tarball-bzip:   $(TMPDIR)/.monarch_buildroot ${REQUIRED}
    5759        @( cd ${TMPDIR}/.monarch_buildroot; tar jcf ganglia_jobmonarch-${VERSION}.tar.bz2 ./ganglia_jobmonarch-${VERSION} )
    58         @mv ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.bz2 ..
     60        @mv -f ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.bz2 ..
    5961        @rm -rf ${TMPDIR}/.monarch_buildroot
    6062        @echo "Wrote: ../ganglia_jobmonarch-${VERSION}.tar.bz2"
     
    6769        rpmbuild -ts --define '%dist %{nil}' ../ganglia_jobmonarch-${VERSION}.tar.bz2
    6870
    69 debchangelog: ./debian/changelog
    70 
    7171deb: ${REQUIRED} $(TMPDIR)/.monarch_buildroot ./debian
    7272        @( cd ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}; dpkg-buildpackage -b -uc -us )
    73         @mv ${TMPDIR}/ganglia_jobmonarch-${VERSION}/jobmonarch*$(VERSION)*.deb ..
     73        @mv ${TMPDIR}/.monarch_buildroot/jobmonarch*$(VERSION)*.deb ..
    7474        @rm -rf ${TMPDIR}/.monarch_buildroot
    7575        @echo "Wrote:"
     
    161161
    162162clean:
    163         @rm -rf ${TMPDIR}/.monarch_buildroot
    164163        @(cd ./debian; rm -rf files *.log *.substvars jobmonarch/ jobmonarch-jobmond/ jobmonarch-jobarchived/ jobmonarch-webfrontend/ tmp/)
    165164        @rm -f web/addons/job_monarch/conf.php
Note: See TracChangeset for help on using the changeset viewer.