#
# Imakefile for the Discuss error tables.
#

# This is only a library for convenience.  It will *never* be
# profiled.
# XXX Some of these header files should be installed somewhere..


ETS	= discuss_err.et dsc_et.et rpc_et.et
OBJS	= discuss_err.o dsc_et.o rpc_et.o krb_et.o
HDRS	= discuss_err.h dsc_et.h rpc_et.h
SRCS	= krb_et.c

all:: $(OBJS)

depend: $(HDRS)
	@for i in $(HDRS); do \
		echo "installing $$i in ../include/$$i"; \
		rm -f xxx ; cp $$i xxx ; \
		$(MOVE_IF_CHANGE) xxx ../include/$$i ; \
		$(INSTALL) -c -m 0444 $$i ../include/$$i; \
	done
# XXX HACK!
	@echo "installing dsc_et.h in ../include/discuss/dsc_et.h"
	@$(INSTALL) -c -m 0444 dsc_et.h ../include/discuss/dsc_et.h

LintTarget()

clean::
	$(RM) *.o *.h

# Make really should figure this out itself.
discuss_err.o : discuss_err.c
discuss_err.c : discuss_err.et
dsc_et.o : dsc_et.c
dsc_et.c : dsc_et.et
rpc_et.o : rpc_et.c
rpc_et.c : rpc_et.et
usp_et.o : usp_et.c
usp_et.c : usp_et.et

# no .et file
krb_et.o : krb_et.c 
