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

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

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

BUILT_SOURCES = \
	rococo.h \
	rococo_0.h rococo_1.h rococo_2.h rococo_3.h rococo_4.h \
	rococo_5.h rococo_6.h rococo_7.h rococo_8.h rococo_9.h \
	rococo_10.h rococo_11.h rococo_12.h rococo_13.h rococo_14.h \
	rococo_15.h rococo_16.h rococo_17.h rococo_18.h rococo_19.h \
	rococo_20.h rococo_21.h rococo_22.h rococo_23.h rococo_24.h \
	rococo_25.h rococo_26.h rococo_27.h rococo_28.h rococo_29.h \
	rococo_30.h rococo_31.h rococo_32.h rococo_33.h rococo_34.h

noinst_DATA = $(BUILT_SOURCES)

DISTCLEANFILES = $(BUILT_SOURCES)

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

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

rococo_0.h: $(srcdir)/rococo.0 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.0 > $@

rococo_1.h: $(srcdir)/rococo.1 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.1 > $@

rococo_2.h: $(srcdir)/rococo.2 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.2 > $@

rococo_3.h: $(srcdir)/rococo.3 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.3 > $@

rococo_4.h: $(srcdir)/rococo.4 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.4 > $@

rococo_5.h: $(srcdir)/rococo.5 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.5 > $@

rococo_6.h: $(srcdir)/rococo.6 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.6 > $@

rococo_7.h: $(srcdir)/rococo.7 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.7 > $@

rococo_8.h: $(srcdir)/rococo.8 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.8 > $@

rococo_9.h: $(srcdir)/rococo.9 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.9 > $@

rococo_10.h: $(srcdir)/rococo.10 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.10 > $@

rococo_11.h: $(srcdir)/rococo.11 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.11 > $@

rococo_12.h: $(srcdir)/rococo.12 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.12 > $@

rococo_13.h: $(srcdir)/rococo.13 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.13 > $@

rococo_14.h: $(srcdir)/rococo.14 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.14 > $@

rococo_15.h: $(srcdir)/rococo.15 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.15 > $@

rococo_16.h: $(srcdir)/rococo.16 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.16 > $@

rococo_17.h: $(srcdir)/rococo.17 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.17 > $@

rococo_18.h: $(srcdir)/rococo.18 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.18 > $@

rococo_19.h: $(srcdir)/rococo.19 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.19 > $@

rococo_20.h: $(srcdir)/rococo.20 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.20 > $@

rococo_21.h: $(srcdir)/rococo.21 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.21 > $@

rococo_22.h: $(srcdir)/rococo.22 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.22 > $@

rococo_23.h: $(srcdir)/rococo.23 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.23 > $@

rococo_24.h: $(srcdir)/rococo.24 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.24 > $@

rococo_25.h: $(srcdir)/rococo.25 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.25 > $@

rococo_26.h: $(srcdir)/rococo.26 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.26 > $@

rococo_27.h: $(srcdir)/rococo.27 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.27 > $@

rococo_28.h: $(srcdir)/rococo.28 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.28 > $@

rococo_29.h: $(srcdir)/rococo.29 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.29 > $@

rococo_30.h: $(srcdir)/rococo.30 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.30 > $@

rococo_31.h: $(srcdir)/rococo.31 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.31 > $@

rococo_32.h: $(srcdir)/rococo.32 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.32 > $@

rococo_33.h: $(srcdir)/rococo.33 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/rococo.33 > $@

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

