#include "../../Xbae.tmpl"
       HEADERS_IN = Matrix.h.in Caption.h.in Input.h.in
      HEADERS_OUT = $(HEADERS_IN:.h.in=.h)

          HEADERS = Matrix.h MatrixP.h Clip.h ClipP.h Caption.h \
                CaptionP.h Input.h InputP.h

XCOMM Rule to install the header files
#if INSTALL_HEADERS
InstallMultiple($(HEADERS),$(INCROOT)/Xbae-$(XBAEVERSION))
#endif

includes:: $(HEADERS_OUT)

depend::

clean::
	$(RM) $(HEADERS_OUT)

XCOMM Generic rule for translating configure's .h.in file to a real .h
%.h: %.h.in
	$(SED) -e 's/@XBAE_MAJOR@/$(XbaeVERSION)/' \
		-e 's/@XBAE_MINOR@/$(XbaeREVISION)/' \
		-e 's/@XBAE_PICO@/$(XbaeUPDATE)/' < $@.in > $@

Matrix.h: Matrix.h.in
Caption.h: Caption.h.in
Input.h: Input.h.in
