source: trunk/athena/bin/getcluster/Makefile.in @ 19233

Revision 19233, 1001 bytes checked in by ghudson, 21 years ago (diff)
Give default values for the local and fallback cluster files. Deprecate changing those defaults on the command line. Hostname should be specified with the -h option now. Allow specifying a hostname on the command line bug ignore it. Use the contents of /etc/athena/cluster as the hostname if it exists and no -h option was given.
Line 
1# $Id: Makefile.in,v 1.4 2003-04-12 16:15:23 ghudson Exp $
2
3SHELL=/bin/sh
4VPATH=@srcdir@
5INSTALL=@INSTALL@
6INSTALL_PROGRAM=@INSTALL_PROGRAM@
7srcdir=@srcdir@
8top_srcdir=@top_srcdir@
9prefix=@prefix@
10exec_prefix=@exec_prefix@
11bindir=@bindir@
12lbindir=@lbindir@
13mandir=@mandir@
14sysconfdir=@sysconfdir@
15
16CC=@CC@
17DEFS=@DEFS@
18CPPFLAGS=@CPPFLAGS@
19CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
20LDFLAGS=@LDFLAGS@
21LIBS=-lhesiod @LIBS@
22ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS} -DSYSCONFDIR=\"${sysconfdir}\"
23
24all: getcluster
25
26getcluster: getcluster.o
27        ${CC} ${LDFLAGS} -o getcluster getcluster.o ${LIBS}
28
29.c.o:
30        ${CC} -c ${ALL_CFLAGS} $<
31
32check:
33        sh ${srcdir}/tests.sh
34
35install:
36        ${top_srcdir}/mkinstalldirs ${DESTDIR}${lbindir}
37        ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
38        ${INSTALL_PROGRAM} getcluster ${DESTDIR}${lbindir}
39        ${INSTALL} -m 444 ${srcdir}/getcluster.1 ${DESTDIR}${mandir}/man1
40
41clean:
42        rm -f getcluster.o getcluster
43
44distclean: clean
45        rm -f config.cache config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.