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

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

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

BUILT_SOURCES = \
	sheen.h \
	sheen_0.h sheen_1.h sheen_2.h sheen_3.h sheen_4.h \
	sheen_5.h sheen_6.h sheen_7.h sheen_8.h sheen_9.h \
	sheen_10.h sheen_11.h sheen_12.h sheen_13.h sheen_14.h \
	sheen_15.h sheen_16.h sheen_17.h sheen_18.h sheen_19.h \
	sheen_20.h sheen_21.h sheen_22.h sheen_23.h sheen_24.h \
	sheen_25.h sheen_26.h sheen_27.h sheen_28.h sheen_29.h \
	sheen_30.h sheen_31.h sheen_32.h sheen_33.h sheen_34.h

noinst_DATA = $(BUILT_SOURCES)

DISTCLEANFILES = $(BUILT_SOURCES)

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

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

sheen_0.h: $(srcdir)/sheen.0 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.0 > $@

sheen_1.h: $(srcdir)/sheen.1 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.1 > $@

sheen_2.h: $(srcdir)/sheen.2 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.2 > $@

sheen_3.h: $(srcdir)/sheen.3 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.3 > $@

sheen_4.h: $(srcdir)/sheen.4 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.4 > $@

sheen_5.h: $(srcdir)/sheen.5 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.5 > $@

sheen_6.h: $(srcdir)/sheen.6 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.6 > $@

sheen_7.h: $(srcdir)/sheen.7 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.7 > $@

sheen_8.h: $(srcdir)/sheen.8 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.8 > $@

sheen_9.h: $(srcdir)/sheen.9 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.9 > $@

sheen_10.h: $(srcdir)/sheen.10 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.10 > $@

sheen_11.h: $(srcdir)/sheen.11 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.11 > $@

sheen_12.h: $(srcdir)/sheen.12 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.12 > $@

sheen_13.h: $(srcdir)/sheen.13 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.13 > $@

sheen_14.h: $(srcdir)/sheen.14 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.14 > $@

sheen_15.h: $(srcdir)/sheen.15 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.15 > $@

sheen_16.h: $(srcdir)/sheen.16 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.16 > $@

sheen_17.h: $(srcdir)/sheen.17 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.17 > $@

sheen_18.h: $(srcdir)/sheen.18 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.18 > $@

sheen_19.h: $(srcdir)/sheen.19 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.19 > $@

sheen_20.h: $(srcdir)/sheen.20 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.20 > $@

sheen_21.h: $(srcdir)/sheen.21 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.21 > $@

sheen_22.h: $(srcdir)/sheen.22 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.22 > $@

sheen_23.h: $(srcdir)/sheen.23 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.23 > $@

sheen_24.h: $(srcdir)/sheen.24 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.24 > $@

sheen_25.h: $(srcdir)/sheen.25 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.25 > $@

sheen_26.h: $(srcdir)/sheen.26 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.26 > $@

sheen_27.h: $(srcdir)/sheen.27 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.27 > $@

sheen_28.h: $(srcdir)/sheen.28 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.28 > $@

sheen_29.h: $(srcdir)/sheen.29 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.29 > $@

sheen_30.h: $(srcdir)/sheen.30 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.30 > $@

sheen_31.h: $(srcdir)/sheen.31 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.31 > $@

sheen_32.h: $(srcdir)/sheen.32 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.32 > $@

sheen_33.h: $(srcdir)/sheen.33 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.33 > $@

sheen_34.h: $(srcdir)/sheen.34 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/sheen.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

