############################################################################
## So@GUI@/data/materials/tropical/Makefile.am
## $Id$

if MAC_FRAMEWORK
materialdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Resources/materials/tropical
else
materialdir = $(datadir)/Coin/materials/tropical
endif

dist_material_DATA = \
	tropical.0 tropical.1 tropical.2 tropical.3 tropical.4 \
	tropical.5 tropical.6 tropical.7 tropical.8 tropical.9 \
	tropical.10 tropical.11 tropical.12 tropical.13 tropical.14 \
	tropical.15 tropical.16 tropical.17 tropical.18 tropical.19 \
	tropical.20 tropical.21 tropical.22 tropical.23 tropical.24 \
	tropical.25 tropical.26 tropical.27 tropical.28 tropical.29 \
	tropical.30 tropical.31 tropical.32 tropical.33 tropical.34

BUILT_SOURCES = \
	tropical.h \
	tropical_0.h tropical_1.h tropical_2.h tropical_3.h tropical_4.h \
	tropical_5.h tropical_6.h tropical_7.h tropical_8.h tropical_9.h \
	tropical_10.h tropical_11.h tropical_12.h tropical_13.h tropical_14.h \
	tropical_15.h tropical_16.h tropical_17.h tropical_18.h tropical_19.h \
	tropical_20.h tropical_21.h tropical_22.h tropical_23.h tropical_24.h \
	tropical_25.h tropical_26.h tropical_27.h tropical_28.h tropical_29.h \
	tropical_30.h tropical_31.h tropical_32.h tropical_33.h tropical_34.h

noinst_DATA = $(BUILT_SOURCES)

DISTCLEANFILES = $(BUILT_SOURCES)

############################################################################

tropical.h: $(srcdir)/tropical.h.in
	@( cd $(top_builddir); $(MAKE) built-sources )

tropical_0.h: $(srcdir)/tropical.0 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.0 > $@

tropical_1.h: $(srcdir)/tropical.1 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.1 > $@

tropical_2.h: $(srcdir)/tropical.2 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.2 > $@

tropical_3.h: $(srcdir)/tropical.3 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.3 > $@

tropical_4.h: $(srcdir)/tropical.4 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.4 > $@

tropical_5.h: $(srcdir)/tropical.5 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.5 > $@

tropical_6.h: $(srcdir)/tropical.6 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.6 > $@

tropical_7.h: $(srcdir)/tropical.7 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.7 > $@

tropical_8.h: $(srcdir)/tropical.8 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.8 > $@

tropical_9.h: $(srcdir)/tropical.9 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.9 > $@

tropical_10.h: $(srcdir)/tropical.10 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.10 > $@

tropical_11.h: $(srcdir)/tropical.11 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.11 > $@

tropical_12.h: $(srcdir)/tropical.12 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.12 > $@

tropical_13.h: $(srcdir)/tropical.13 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.13 > $@

tropical_14.h: $(srcdir)/tropical.14 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.14 > $@

tropical_15.h: $(srcdir)/tropical.15 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.15 > $@

tropical_16.h: $(srcdir)/tropical.16 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.16 > $@

tropical_17.h: $(srcdir)/tropical.17 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.17 > $@

tropical_18.h: $(srcdir)/tropical.18 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.18 > $@

tropical_19.h: $(srcdir)/tropical.19 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.19 > $@

tropical_20.h: $(srcdir)/tropical.20 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.20 > $@

tropical_21.h: $(srcdir)/tropical.21 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.21 > $@

tropical_22.h: $(srcdir)/tropical.22 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.22 > $@

tropical_23.h: $(srcdir)/tropical.23 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.23 > $@

tropical_24.h: $(srcdir)/tropical.24 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.24 > $@

tropical_25.h: $(srcdir)/tropical.25 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.25 > $@

tropical_26.h: $(srcdir)/tropical.26 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.26 > $@

tropical_27.h: $(srcdir)/tropical.27 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.27 > $@

tropical_28.h: $(srcdir)/tropical.28 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.28 > $@

tropical_29.h: $(srcdir)/tropical.29 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.29 > $@

tropical_30.h: $(srcdir)/tropical.30 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.30 > $@

tropical_31.h: $(srcdir)/tropical.31 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.31 > $@

tropical_32.h: $(srcdir)/tropical.32 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.32 > $@

tropical_33.h: $(srcdir)/tropical.33 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.33 > $@

tropical_34.h: $(srcdir)/tropical.34 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/tropical.34 > $@

############################################################################

install-dist_materialDATA: $(dist_material_DATA)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(materialdir)
	@list='$(dist_material_DATA)'; for p in $$list; do \
	  if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  if cmp -s $$d$$p $(DESTDIR)$(materialdir)/$$f; then :; else \
	    echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(materialdir)/$$f"; \
	    $(INSTALL_DATA) $$d$$p $(DESTDIR)$(materialdir)/$$f; \
	  fi; \
	done

