# $Id: Makefile.in,v 1.1 1999-02-15 15:29:41 ghudson Exp $

SHELL=/bin/sh
VPATH=@srcdir@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
mandir=@mandir@

CC=@CC@
DEFS=@DEFS@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}

all: just

just: just.o
	${CC} ${LDFLAGS} -o just just.o ${LIBS}

.c.o:
	${CC} -c ${ALL_CFLAGS} $<

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
	${INSTALL_PROGRAM} just ${DESTDIR}${bindir}
	rm -f ${DESTDIR}${bindir}/fill
	ln -s just ${DESTDIR}${bindir}/fill
	${INSTALL} -m 444 ${srcdir}/just.1 ${DESTDIR}${mandir}/man1
	${INSTALL} -m 444 ${srcdir}/fill.1 ${DESTDIR}${mandir}/man1

clean:
	rm -f just.o just

distclean: clean
	rm -f config.cache config.log config.status Makefile
