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

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

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

BUILT_SOURCES = \
	autumn.h \
	autumn_0.h autumn_1.h autumn_2.h autumn_3.h autumn_4.h \
	autumn_5.h autumn_6.h autumn_7.h autumn_8.h autumn_9.h \
	autumn_10.h autumn_11.h autumn_12.h autumn_13.h autumn_14.h \
	autumn_15.h autumn_16.h autumn_17.h autumn_18.h autumn_19.h \
	autumn_20.h autumn_21.h autumn_22.h autumn_23.h autumn_24.h \
	autumn_25.h autumn_26.h autumn_27.h autumn_28.h autumn_29.h \
	autumn_30.h autumn_31.h autumn_32.h autumn_33.h autumn_34.h

noinst_DATA = $(BUILT_SOURCES)

DISTCLEANFILES = $(BUILT_SOURCES)

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

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

autumn_0.h: $(srcdir)/autumn.0 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.0 > $@

autumn_1.h: $(srcdir)/autumn.1 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.1 > $@

autumn_2.h: $(srcdir)/autumn.2 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.2 > $@

autumn_3.h: $(srcdir)/autumn.3 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.3 > $@

autumn_4.h: $(srcdir)/autumn.4 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.4 > $@

autumn_5.h: $(srcdir)/autumn.5 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.5 > $@

autumn_6.h: $(srcdir)/autumn.6 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.6 > $@

autumn_7.h: $(srcdir)/autumn.7 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.7 > $@

autumn_8.h: $(srcdir)/autumn.8 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.8 > $@

autumn_9.h: $(srcdir)/autumn.9 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.9 > $@

autumn_10.h: $(srcdir)/autumn.10 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.10 > $@

autumn_11.h: $(srcdir)/autumn.11 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.11 > $@

autumn_12.h: $(srcdir)/autumn.12 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.12 > $@

autumn_13.h: $(srcdir)/autumn.13 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.13 > $@

autumn_14.h: $(srcdir)/autumn.14 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.14 > $@

autumn_15.h: $(srcdir)/autumn.15 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.15 > $@

autumn_16.h: $(srcdir)/autumn.16 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.16 > $@

autumn_17.h: $(srcdir)/autumn.17 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.17 > $@

autumn_18.h: $(srcdir)/autumn.18 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.18 > $@

autumn_19.h: $(srcdir)/autumn.19 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.19 > $@

autumn_20.h: $(srcdir)/autumn.20 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.20 > $@

autumn_21.h: $(srcdir)/autumn.21 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.21 > $@

autumn_22.h: $(srcdir)/autumn.22 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.22 > $@

autumn_23.h: $(srcdir)/autumn.23 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.23 > $@

autumn_24.h: $(srcdir)/autumn.24 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.24 > $@

autumn_25.h: $(srcdir)/autumn.25 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.25 > $@

autumn_26.h: $(srcdir)/autumn.26 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.26 > $@

autumn_27.h: $(srcdir)/autumn.27 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.27 > $@

autumn_28.h: $(srcdir)/autumn.28 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.28 > $@

autumn_29.h: $(srcdir)/autumn.29 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.29 > $@

autumn_30.h: $(srcdir)/autumn.30 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.30 > $@

autumn_31.h: $(srcdir)/autumn.31 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.31 > $@

autumn_32.h: $(srcdir)/autumn.32 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.32 > $@

autumn_33.h: $(srcdir)/autumn.33 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/autumn.33 > $@

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

