# Copyright 1990, Digital Equipment Corporation, CEC Karlsruhe

        CPP = cc -E	# Note: an alternative is  CPP = /lib/cpp
       MAKE = make	# BSD doesn't have it as a default.

all: xmakefile doall ../shXlib/config.h

doall:
	$(MAKE) -f xmakefile all

veryclean: clean
	rm -f shXbridge xmakefile

xmakefile: ymakefile ../shXlib/config.h
	rm -f xmakefile
	cp ymakefile junk.c
	$(CPP) junk.c | sed -e 's/^#.*//' -e 's/^[ \f\t][ \f\t]*$$//' -e 's/^ /	/' | \
	sed -n -e '/^..*$$/p' > xmakefile
	rm -f junk.c

tags:
	etags *.c

tags:
	etags -t *.c

clean:
	rm -f \#* *.bak *.BAK *.o core *~ *.orig TAGS
