Changeset 904


Ignore:
Timestamp:
05/22/13 13:48:30 (8 years ago)
Author:
ramonb
Message:

Makefile:

  • change spaces back into tabs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/Makefile

    r902 r904  
    3030all:
    3131
    32 tarball:    tarball-gzip tarball-bzip
     32tarball:        tarball-gzip tarball-bzip
    3333
    34 tarball-gzip:    ${REQUIRED} ./pkg/rpm/jobmonarch.spec ./debian/changelog
    35     mkdir -p ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}
    36     ( rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php \
    37     . ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION} )
    38     ( cd ${TMPDIR}/.monarch_buildroot; tar zcvf ganglia_jobmonarch-${VERSION}.tar.gz ./ganglia_jobmonarch-${VERSION} )
    39     mv ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.gz ..
     34tarball-gzip:   ${REQUIRED} ./pkg/rpm/jobmonarch.spec ./debian/changelog
     35        mkdir -p ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}
     36        ( rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php \
     37        . ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION} )
     38        ( cd ${TMPDIR}/.monarch_buildroot; tar zcvf ganglia_jobmonarch-${VERSION}.tar.gz ./ganglia_jobmonarch-${VERSION} )
     39        mv ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.gz ..
    4040
    41 tarball-bzip:    ${REQUIRED} ./pkg/rpm/jobmonarch.spec ./debian/changelog
    42     mkdir -p ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}
    43     ( rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php \
    44     . ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION} )
    45     ( cd ${TMPDIR}/.monarch_buildroot; tar jcvf ganglia_jobmonarch-${VERSION}.tar.bz2 ./ganglia_jobmonarch-${VERSION} )
    46     mv ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.bz2 ..
     41tarball-bzip:   ${REQUIRED} ./pkg/rpm/jobmonarch.spec ./debian/changelog
     42        mkdir -p ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}
     43        ( rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php \
     44        . ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION} )
     45        ( cd ${TMPDIR}/.monarch_buildroot; tar jcvf ganglia_jobmonarch-${VERSION}.tar.bz2 ./ganglia_jobmonarch-${VERSION} )
     46        mv ${TMPDIR}/.monarch_buildroot/ganglia_jobmonarch-${VERSION}.tar.bz2 ..
    4747
    4848rpmspec: ./pkg/rpm/jobmonarch.spec
    4949
    5050./pkg/rpm/jobmonarch.spec: pkg/rpm/jobmonarch.spec.in Makefile
    51     sed -e 's/__VERSION__/${VERSION}/g' -e 's/__RELEASE__/${RELEASE}/g' ./pkg/rpm/jobmonarch.spec.in > ./pkg/rpm/jobmonarch.spec
     51        sed -e 's/__VERSION__/${VERSION}/g' -e 's/__RELEASE__/${RELEASE}/g' ./pkg/rpm/jobmonarch.spec.in > ./pkg/rpm/jobmonarch.spec
    5252
    5353rpm: tarball-bzip
    54     rpmbuild -tb ../ganglia_jobmonarch-${VERSION}.tar.bz2
     54        rpmbuild -tb ../ganglia_jobmonarch-${VERSION}.tar.bz2
    5555
    5656srpm: tarball-bzip
    57     rpmbuild -ts --define '%dist %{nil}' ../ganglia_jobmonarch-${VERSION}.tar.bz2
     57        rpmbuild -ts --define '%dist %{nil}' ../ganglia_jobmonarch-${VERSION}.tar.bz2
    5858
    5959debchangelog: ./debian/changelog
    6060
    6161./debian/changelog: ./debian/changelog.in Makefile
    62     sed -e 's/__VERSION__/${VERSION}/g' -e 's/__RELEASE__/${RELEASE}/g' ./debian/changelog.in > ./debian/changelog
     62        sed -e 's/__VERSION__/${VERSION}/g' -e 's/__RELEASE__/${RELEASE}/g' ./debian/changelog.in > ./debian/changelog
    6363
    6464deb: ${REQUIRED} ./debian ./debian/changelog
    65     dpkg-buildpackage -b -uc -us
     65        dpkg-buildpackage -b -uc -us
    6666
    6767install: @#
    68     @# Set the correct GANGLIA_PATH.
    69     @#
    70     @echo
    71     @echo "Using $(GANGLIA_ROOT) as Ganglia root installation path. If it's not what"
    72     @echo "you want, use make GANGLIA_ROOT=/path/to/your/ganglia/root ."
    73     @sed -e 's|__GANGLIA_ROOT__|$(GANGLIA_ROOT)/|g' web/conf.php.in > web/addons/job_monarch/conf.php
    74     @#
    75     @# Set the correct JOBARCHIVE_RRDS in jobarchve.conf and ganglia conf.php
    76     @#
    77     @echo
    78     @echo "Using $(JOBARCHIVE_RRDS) as jobarchive path to  store rrds files. If it's not what"
    79     @echo "you want, use make JOBARCHIVE_RRDS=/path/to/you/jobarchived/rrdsfiles ."
    80     @sed -i -e 's|/var/lib/jobarchive|$(JOBARCHIVE_RRDS)|g' jobarchived/jobarchived.conf web/addons/job_monarch/conf.php
    81     @#
    82     @# Files in SBIN_DIR
    83     @#
    84     @echo
    85     @echo "Installing jobmond.py and jobarchived.py to $(PREFIX)/sbin"
    86     @install -m 0755 -d $(DESTDIR)$(PREFIX)/sbin
    87     @install -m 0755 jobmond/jobmond.py $(DESTDIR)$(PREFIX)/sbin/
    88     @install -m 0755 jobarchived/jobarchived.py $(DESTDIR)$(PREFIX)/sbin/
    89     @(cd $(DESTDIR)$(PREFIX)/sbin/; ln -s jobmond.py jobmond; ln -s jobarchived.py jobarchived)
    90     @#
    91     @# Files specific to distros if /etc/redhat_release => rpm else (/etc/debian_version => debian)
    92     @#
    93     @echo
    94     @echo "Installing service files in /etc"
    95     @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobmond/g' pkg/deb/init.d/jobmond
    96     @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobarchived/g' pkg/deb/init.d/jobarchived
    97     @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobmond/g' pkg/rpm/init.d/jobmond
    98     @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobarchived/g' pkg/rpm/init.d/jobarchived
    99     @if test -r /etc/redhat_release; then \
    100         install -m 0755 -d $(DESTDIR)/etc/rc.d/init.d; \
    101         install -m 0755 pkg/rpm/init.d/jobmond $(DESTDIR)/etc/rc.d/init.d/; \
    102         install -m 0755 pkg/rpm/init.d/jobarchived $(DESTDIR)/etc/rc.d/init.d/; \
    103         install -m 0755 -d $(DESTDIR)/etc/sysconfig; \
    104         install -m 0755 pkg/rpm/sysconfig/jobmond $(DESTDIR)/etc/sysconfig; \
    105         install -m 0755 pkg/rpm/sysconfig/jobarchived $(DESTDIR)/etc/sysconfig; \
    106     else \
    107         install -m 0755 -d $(DESTDIR)/etc/init.d; \
    108         install -m 0755 pkg/deb/init.d/jobmond $(DESTDIR)/etc/init.d/; \
    109         install -m 0755 pkg/deb/init.d/jobarchived $(DESTDIR)/etc/init.d/; \
    110         install -m 0755 -d $(DESTDIR)/etc/default; \
    111         install -m 0755 pkg/deb/default/jobmond $(DESTDIR)/etc/default; \
    112         install -m 0755 pkg/deb/default/jobarchived $(DESTDIR)/etc/default; \
    113     fi
    114     @#
    115     @# Files in /etc
    116     @#
    117     @echo
    118     @echo "Installing config files jobmond.conf jobarchived.conf in /etc"
    119     @install -m 0644 jobmond/jobmond.conf $(DESTDIR)/etc
    120     @install -m 0644 jobarchived/jobarchived.conf $(DESTDIR)/etc
    121     @#
    122     @# Files in /usr/share
    123     @#
    124     @echo
    125     @echo "Installing job_dbase.sql in $(PREFIX)/share/jobarchived"
    126     @install -m 0755 -d $(DESTDIR)$(PREFIX)/share/jobarchived
    127     @install -m 0755 jobarchived/job_dbase.sql $(DESTDIR)$(PREFIX)/share/jobarchived/
    128     @#
    129     @# Create the /var/lib/jobarchive directory where rrds are stored.
    130     @#
    131     @echo
    132     @echo "Creating the directory where RRDs will be stored: $(JOBARCHIVE_RRDS)"
    133     @install -m 0755 -d $(DESTDIR)$(JOBARCHIVE_RRDS)
    134     @#
    135     @# Files for ganglia
    136     @#
    137     @echo
    138     @echo "Installing Ganglia web interface to $(GANGLIA_ROOT) ."
    139     @install -m 0755 -d $(DESTDIR)$(GANGLIA_ROOT)
    140     @chown -R $(GANGLIA_USER) ./web
    141     @chown $(HTTPD_USER) ./web/addons/job_monarch/dwoo/compiled
    142     @chown $(HTTPD_USER) ./web/addons/job_monarch/dwoo/cache
    143     @chmod 775 ./web/addons/job_monarch/dwoo/cache
    144     @(cd web; rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php ./addons ./templates $(DESTDIR)$(GANGLIA_ROOT)/)
    145     @#
    146     @echo
    147     @echo "Installation complete."
    148     @echo
     68        @# Set the correct GANGLIA_PATH.
     69        @#
     70        @echo
     71        @echo "Using $(GANGLIA_ROOT) as Ganglia root installation path. If it's not what"
     72        @echo "you want, use make GANGLIA_ROOT=/path/to/your/ganglia/root ."
     73        @sed -e 's|__GANGLIA_ROOT__|$(GANGLIA_ROOT)/|g' web/conf.php.in > web/addons/job_monarch/conf.php
     74        @#
     75        @# Set the correct JOBARCHIVE_RRDS in jobarchve.conf and ganglia conf.php
     76        @#
     77        @echo
     78        @echo "Using $(JOBARCHIVE_RRDS) as jobarchive path to  store rrds files. If it's not what"
     79        @echo "you want, use make JOBARCHIVE_RRDS=/path/to/you/jobarchived/rrdsfiles ."
     80        @sed -i -e 's|/var/lib/jobarchive|$(JOBARCHIVE_RRDS)|g' jobarchived/jobarchived.conf web/addons/job_monarch/conf.php
     81        @#
     82        @# Files in SBIN_DIR
     83        @#
     84        @echo
     85        @echo "Installing jobmond.py and jobarchived.py to $(PREFIX)/sbin"
     86        @install -m 0755 -d $(DESTDIR)$(PREFIX)/sbin
     87        @install -m 0755 jobmond/jobmond.py $(DESTDIR)$(PREFIX)/sbin/
     88        @install -m 0755 jobarchived/jobarchived.py $(DESTDIR)$(PREFIX)/sbin/
     89        @(cd $(DESTDIR)$(PREFIX)/sbin/; ln -s jobmond.py jobmond; ln -s jobarchived.py jobarchived)
     90        @#
     91        @# Files specific to distros if /etc/redhat_release => rpm else (/etc/debian_version => debian)
     92        @#
     93        @echo
     94        @echo "Installing service files in /etc"
     95        @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobmond/g' pkg/deb/init.d/jobmond
     96        @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobarchived/g' pkg/deb/init.d/jobarchived
     97        @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobmond/g' pkg/rpm/init.d/jobmond
     98        @sed -i -e 's/DAEMON=.*/DAEMON=${DESTDIR}${PREFIX}\/sbin\/jobarchived/g' pkg/rpm/init.d/jobarchived
     99        @if test -r /etc/redhat_release; then \
     100                install -m 0755 -d $(DESTDIR)/etc/rc.d/init.d; \
     101                install -m 0755 pkg/rpm/init.d/jobmond $(DESTDIR)/etc/rc.d/init.d/; \
     102                install -m 0755 pkg/rpm/init.d/jobarchived $(DESTDIR)/etc/rc.d/init.d/; \
     103                install -m 0755 -d $(DESTDIR)/etc/sysconfig; \
     104                install -m 0755 pkg/rpm/sysconfig/jobmond $(DESTDIR)/etc/sysconfig; \
     105                install -m 0755 pkg/rpm/sysconfig/jobarchived $(DESTDIR)/etc/sysconfig; \
     106        else \
     107                install -m 0755 -d $(DESTDIR)/etc/init.d; \
     108                install -m 0755 pkg/deb/init.d/jobmond $(DESTDIR)/etc/init.d/; \
     109                install -m 0755 pkg/deb/init.d/jobarchived $(DESTDIR)/etc/init.d/; \
     110                install -m 0755 -d $(DESTDIR)/etc/default; \
     111                install -m 0755 pkg/deb/default/jobmond $(DESTDIR)/etc/default; \
     112                install -m 0755 pkg/deb/default/jobarchived $(DESTDIR)/etc/default; \
     113        fi
     114        @#
     115        @# Files in /etc
     116        @#
     117        @echo
     118        @echo "Installing config files jobmond.conf jobarchived.conf in /etc"
     119        @install -m 0644 jobmond/jobmond.conf $(DESTDIR)/etc
     120        @install -m 0644 jobarchived/jobarchived.conf $(DESTDIR)/etc
     121        @#
     122        @# Files in /usr/share
     123        @#
     124        @echo
     125        @echo "Installing job_dbase.sql in $(PREFIX)/share/jobarchived"
     126        @install -m 0755 -d $(DESTDIR)$(PREFIX)/share/jobarchived
     127        @install -m 0755 jobarchived/job_dbase.sql $(DESTDIR)$(PREFIX)/share/jobarchived/
     128        @#
     129        @# Create the /var/lib/jobarchive directory where rrds are stored.
     130        @#
     131        @echo
     132        @echo "Creating the directory where RRDs will be stored: $(JOBARCHIVE_RRDS)"
     133        @install -m 0755 -d $(DESTDIR)$(JOBARCHIVE_RRDS)
     134        @#
     135        @# Files for ganglia
     136        @#
     137        @echo
     138        @echo "Installing Ganglia web interface to $(GANGLIA_ROOT) ."
     139        @install -m 0755 -d $(DESTDIR)$(GANGLIA_ROOT)
     140        @chown -R $(GANGLIA_USER) ./web
     141        @chown $(HTTPD_USER) ./web/addons/job_monarch/dwoo/compiled
     142        @chown $(HTTPD_USER) ./web/addons/job_monarch/dwoo/cache
     143        @chmod 775 ./web/addons/job_monarch/dwoo/cache
     144        @(cd web; rsync -a --exclude=.svn --exclude=*_test* --exclude=*-example.php ./addons ./templates $(DESTDIR)$(GANGLIA_ROOT)/)
     145        @#
     146        @echo
     147        @echo "Installation complete."
     148        @echo
    149149
    150150clean: @rm -rf ${TMPDIR}/.monarch_buildroot
    151     @rm -rf ./pkg/rpm/jobmonarch.spec
    152     @(cd ./debian; rm -rf files *.log *.substvars jobmonarch/ jobmonarch-jobmond/ jobmonarch-jobarchived/ jobmonarch-webfrontend/ tmp/)
    153     @rm -f web/addons/job_monarch/conf.php
     151        @rm -rf ./pkg/rpm/jobmonarch.spec
     152        @(cd ./debian; rm -rf files *.log *.substvars jobmonarch/ jobmonarch-jobmond/ jobmonarch-jobarchived/ jobmonarch-webfrontend/ tmp/)
     153        @rm -f web/addons/job_monarch/conf.php
Note: See TracChangeset for help on using the changeset viewer.