XCOMM Copyright 1995 INRIA -- See license conditions in file COPYRIGHT
XCOMM $Id: Imakefile,v 0.3 1995/05/16 14:09:24 oarsac Exp $ 

#include "../project.config"

SRCS          =    alloc.c compress.c error.c misc.c math2D.c math3D.c \
                   strings.c xmisc.c comm.c scomm.c acomm.c \
                   struct.c slist.c shasht.c sassoct.c stree.c sstack.c \
                   sgrowa.c sstringl.c sograph.c squeue.c 

OBJS	      =    alloc.o compress.o error.o misc.o math2D.o math3D.o \
                   strings.o xmisc.o comm.o scomm.o acomm.o \
                   struct.o slist.o shasht.o sassoct.o stree.o sstack.o \
                   sgrowa.o sstringl.o sograph.o squeue.o 


NormalLibraryObjectRule()
NormalLibraryTarget(util,$(OBJS))

TMPMANDIR       = ./TmpMan
MANDIR          = ./Man

PASBEAU         = /u/psyche/0/safir/slavirot/Emath/Src/Util

emdoc d:
	@echo "Extract Emath Documentation..."
	@../cextractk -o $(TMPMANDIR) -a $(SRCS)

emman m: cleanman emdoc
	@echo "Building Emath Man..."
	@mkdirhier $(MANDIR)
	@for i in $(SRCS) ;\
	do \
	(echo "---- Generate Man for $$i" ;\
	c2man -s -o $(MANDIR) -I$(PASBEAU) $(TMPMANDIR)/$$i); \
	done

cleanman cm:
	@echo "cleaning Util Man..."
	-@if [ -f $(MANDIR) ]; then (cd $(MANDIR);$(RM) -f *.3); \
	@rmdir $(MANDIR); fi
	-@if [ -f $(MANDIR) ]; then (cd $(MANDIR);$(RM) -f *.c); \
	@rmdir $(TMPMANDIR); fi

clean:: cleanman
