Changeset 9cb45b7597e8bcabebf529f54ec608209571b285

Show
Ignore:
Timestamp:
03/12/07 21:56:35 (8 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1173736595 +0000
git-parent:

[a15a7973816ea6c752b14b8582f6d1047159f95b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1173736595 +0000
Message:

fix up make process to use autoconf to find perl and pod2man. refs #10

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.in

    ra15a797 r9cb45b7  
    1 prefix = /usr/local 
    2 bindir = ${prefix}/bin 
    3 sysconfdir = ${prefix}/etc 
    4 mandir = ${prefix}/man 
     1prefix=@prefix@ 
     2vardir=/var 
     3exec_prefix=@exec_prefix@ 
     4bindir=@bindir@ 
     5sbindir=@sbindir@ 
     6libdir=@libdir@ 
     7includedir=${prefix}/include 
     8libexecdir=@libexecdir@ 
     9mandir=@mandir@ 
     10sysconfdir=@sysconfdir@ 
     11srcdir=@srcdir@ 
     12top_srcdir=@top_srcdir@ 
    513 
    6 mkinstalldirs = /bin/sh ./mkinstalldirs 
    7 install = ./install-sh -c 
     14DESTDIR= 
     15mkinstalldirs=./mkinstalldirs 
     16install=./install-sh -c 
    817 
    918# Set these to appropriate values for your system 
    10 perl = /usr/bin/perl 
    11 pod2man = pod2man 
     19perl=@PERL@ 
     20pod2man=@POD2MAN@ 
    1221 
    1322all: 
     
    1827 
    1928install: all 
    20         $(mkinstalldirs) ${bindir} 
    21         $(mkinstalldirs) ${sysconfdir} 
    22         $(mkinstalldirs) ${mandir} 
    23         $(mkinstalldirs) ${mandir}/man1 
     29        $(mkinstalldirs) ${DESTDIR}${bindir} 
     30        $(mkinstalldirs) ${DESTDIR}${sysconfdir} 
     31        $(mkinstalldirs) ${DESTDIR}${mandir} 
     32        $(mkinstalldirs) ${DESTDIR}${mandir}/man1 
    2433        $(pod2man) zetaback zetaback.1 
    2534        $(pod2man) zetaback_agent zetaback_agent.1 
    26         $(install) -m 0755 zetaback ${bindir}/zetaback 
    27         $(install) -m 0755 zetaback_agent ${bindir}/zetaback_agent 
    28         $(install) -m 0644 zetaback.conf ${sysconfdir}/zetaback.conf 
    29         $(install) -m 0644 zetaback_agent.conf ${sysconfdir}/zetaback_agent.conf 
    30         $(install) -m 0644 zetaback.1 ${mandir}/man1/zetaback.1 
    31         $(install) -m 0644 zetaback_agent.1 ${mandir}/man1/zetaback_agent.1 
     35        $(install) -m 0755 zetaback ${DESTDIR}${bindir}/zetaback 
     36        $(install) -m 0755 zetaback_agent ${DESTDIR}${bindir}/zetaback_agent 
     37        $(install) -m 0644 zetaback.conf ${DESTDIR}${sysconfdir}/zetaback.conf 
     38        $(install) -m 0644 zetaback_agent.conf ${DESTDIR}${sysconfdir}/zetaback_agent.conf 
     39        $(install) -m 0644 zetaback.1 ${DESTDIR}${mandir}/man1/zetaback.1 
     40        $(install) -m 0644 zetaback_agent.1 ${DESTDIR}${mandir}/man1/zetaback_agent.1 
    3241 
    3342clean: 
  • README

    ra15a797 r9cb45b7  
    1010Installation 
    1111============ 
    12 cp Makefile.in Makefile 
     12autoconf 
    1313make 
    1414make install 
    15  
    16 By default, the install prefix is /usr/local, and perl is expected to be 
    17 /usr/bin/perl.  Edit Makefile to change.  You should also make sure that you  
    18 have the 'pod2man' utility in your path.