source: trunk/athena/bin/machtype/Makefile.in @ 14883

Revision 14883, 1.5 KB checked in by ghudson, 24 years ago (diff)
Redo script building in a way autoconf is happier with.
Line 
1# $Id: Makefile.in,v 1.3 2000-06-22 21:26: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@
14
15CC=@CC@
16DEFS=@DEFS@
17CPPFLAGS=@CPPFLAGS@
18CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
19LDFLAGS=@LDFLAGS@
20LIBS=@LIBS@
21ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
22INSTALLFLAGS=@INSTALLFLAGS@
23
24# Used for creating the script, if that's what we're doing.
25ATHENA_MAJOR_VERSION=@ATHENA_MAJOR_VERSION@
26ATHENA_MINOR_VERSION=@ATHENA_MINOR_VERSION@
27ATHENA_SYS=@ATHENA_SYS@
28ATHENA_SYS_COMPAT=@ATHENA_SYS_COMPAT@
29
30OS_SCRIPT=@OS_SCRIPT@
31TARGET=@TARGET@
32OS_OBJS=@OS_OBJS@
33OBJS=machtype.o ${OS_OBJS}
34at=@
35
36all: ${TARGET}
37
38machtype: ${OBJS}
39        ${CC} ${LDFLAGS} -o machtype ${OBJS} ${LIBS}
40
41.c.o:
42        ${CC} -c ${ALL_CFLAGS} $<
43
44machtype.sh: ${OS_SCRIPT}
45        rm -f $@
46        sed -e 's/${at}ATHENA_MAJOR_VERSION${at}/${ATHENA_MAJOR_VERSION}/' \
47            -e 's/${at}ATHENA_MINOR_VERSION${at}/${ATHENA_MINOR_VERSION}/' \
48            -e 's/${at}ATHENA_SYS${at}/${ATHENA_SYS}/' \
49            -e 's/${at}ATHENA_SYS_COMPAT${at}/${ATHENA_SYS_COMPAT}/' \
50            ${OS_SCRIPT} > $@
51
52check:
53
54install:
55        ${top_srcdir}/mkinstalldirs ${DESTDIR}${lbindir}
56        ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
57        ${INSTALL_PROGRAM} ${INSTALLFLAGS} ${TARGET} \
58                ${DESTDIR}${lbindir}/machtype
59        ${INSTALL} -m 444 ${srcdir}/machtype.1 ${DESTDIR}${mandir}/man1
60
61clean:
62        rm -f ${TARGET} ${OBJS}
63
64distclean: clean
65        rm -f config.cache config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.