head	1.6;
access;
symbols
	ATH7_7:1.6
	ATH7_4:1.4
	ATH7_6:1.6;
locks; strict;
comment	@# @;


1.6
date	92.07.08.18.44.40;	author epeisach;	state Exp;
branches;
next	1.5;

1.5
date	92.07.08.18.37.59;	author epeisach;	state Exp;
branches;
next	1.4;

1.4
date	91.09.04.11.19.47;	author lwvanels;	state Exp;
branches;
next	1.3;

1.3
date	91.07.06.15.39.42;	author probe;	state Exp;
branches;
next	1.2;

1.2
date	91.06.09.02.25.21;	author probe;	state Exp;
branches;
next	1.1;

1.1
date	91.06.09.02.22.59;	author probe;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Improved changed Makefile and norebuild genertor
@
text
@/* 
 * -*- Mode: Text -*-
 *
 * Look over config.X before building.
 *
 * You may want to edit BINDIR, LIBDIR, DEFHASH, DEFDICT, MANDIR, and
 * MANEXT below; the Makefile will update all other files to match.
 *
 * On USG systems, add -DUSG to CFLAGS.
 *
 * The ifdef NO8BIT may be used if 8 bit extended text characters
 * cause problems, or you simply don't wish to allow the feature.
 *
 * the argument syntax for buildhash to make alternate dictionary files
 * is simply:
 *
 *   buildhash <infile> <outfile>
*/

LIBDIR = /usr/athena/lib/ispell
DEFHASH = ispell.hash
DEFDICT = dict.191
SHELL = /bin/sh

TERMLIB = -ltermcap

#if defined(_AUX_SOURCE)
DEFINES= -DUSG
#endif

all:: configure ispell.hash munchlist

OBJS=ispell.o term.o good.o lookup.o hash.o tree.o
SRCS=ispell.c term.c good.c lookup.c hash.c tree.c

build_program(buildhash,buildhash.o hash.o,,)
SimpleProgram(icombine,icombine.c,,$(LIBDIR))
SimpleProgram(ispell,$(OBJS),$(TERMLIB),$(ATHBINDIR))

ispell.hash: buildhash $(DEFDICT)
	./buildhash $(DEFDICT) $(DEFHASH)

/* install */
create_dir($(ATHBINDIR))
create_dir($(LIBDIR))

install_file(ispell.hash,$(LIBDIR)/$(DEFHASH))
install_file(expand1.sed,$(LIBDIR))
install_file(expand2.sed,$(LIBDIR))
install_man(ispell.1,ispell.1)

install::
	$(INSTALL) -m 755 munchlist $(DESTDIR)$(ATHBINDIR)/munchlist


$(OBJS) buildhash.o: config.h

configure: Makefile config.X munchlist.X
	-mv -f config.h config.h.old
	sed -e 's@@!!LIBDIR!!@@$(LIBDIR)@@' -e 's@@!!DEFDICT!!@@$(DEFDICT)@@' \
	    -e 's@@!!DEFHASH!!@@$(DEFHASH)@@' <config.X >config.h
	-cmp -s config.h.old config.h && mv -f config.h.old config.h
	-mv -f munchlist munchlist.old
	sed -e 's@@!!LIBDIR!!@@$(LIBDIR)@@' -e 's@@!!DEFDICT!!@@$(DEFDICT)@@' \
		<munchlist.X >munchlist
	chmod +x munchlist
	-cmp -s munchlist.old munchlist && mv -f munchlist.old munchlist
	touch configure


clean::
	$(RM) hash.out 	*.stat *.cnt munchlist config.h ispell.hash configure

#if 0
depend:
	makedepend ${CFLAGS} ${SRCS}
#endif
	
@


1.5
log
@Don't Changes such that make Makefiles does not force recompile
@
text
@d31 1
a31 1
all:: ispell.hash munchlist
a54 6
munchlist:	munchlist.X Makefile
	-mv -f munchlist munchlist.old
	sed -e 's@@!!LIBDIR!!@@$(LIBDIR)@@' -e 's@@!!DEFDICT!!@@$(DEFDICT)@@' \
		<munchlist.X >munchlist
	chmod +x munchlist
	-cmp -s munchlist.old munchlist && mv -f munchlist.old munchlist
a55 1

d58 1
a58 1
config.h:	config.X Makefile
d63 6
d70 1
d72 1
a72 1
	$(RM) hash.out 	*.stat *.cnt munchlist config.h ispell.hash
@


1.4
log
@install icombine in correct location
@
text
@d56 1
d60 1
d66 1
d69 1
@


1.3
log
@On AUX, DEFINES=-DUSG
@
text
@d37 1
a37 1
SimpleProgram(icombine,icombine.c,,$(ATHBINDIR))
@


1.2
log
@RIOS integration
@
text
@a22 1
MANDIR	= ${DESTDIR}/usr/man/man1
d26 4
@


1.1
log
@Initial revision
@
text
@d49 2
a50 2
install:: 
	install -c -m 755 munchlist $(DESTDIR)/$(ATHBINDIR)/munchlist
@
