# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

CDEBUGFLAGS=	-O
CFLAGS=		$(CDEBUGFLAGS)
ROOTDIR=	/mit/sipb
BINDIR=		$(ROOTDIR)/bin
MANDIR=		$(ROOTDIR)/man
MANSECT=	1

OBJ= hebcal.o greg.o error.o danlib.o
all: hebcal

hebcal:  $(OBJ)
	 $(CC) $(OBJ) -o hebcal

install: all hebcal.1
	install -c -s hebcal $(DESTDIR)$(BINDIR)/hebcal
	install -c -m 0444 hebcal.1 $(DESTDIR)$(MANDIR)/man$(MANSECT)/hebcal.$(MANSECT)

clean:
	-rm -f *.o *~ hebcal

depend:

Makefile: Imakefile
	-rm -f Makefile.bak
	-mv Makefile Makefile.bak
	imake -I. -TImakefile -f /dev/null

