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

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

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

BUILT_SOURCES = \
	spring.h \
	spring_0.h spring_1.h spring_2.h spring_3.h spring_4.h \
	spring_5.h spring_6.h spring_7.h spring_8.h spring_9.h \
	spring_10.h spring_11.h spring_12.h spring_13.h spring_14.h \
	spring_15.h spring_16.h spring_17.h spring_18.h spring_19.h \
	spring_20.h spring_21.h spring_22.h spring_23.h spring_24.h \
	spring_25.h spring_26.h spring_27.h spring_28.h spring_29.h \
	spring_30.h spring_31.h spring_32.h spring_33.h spring_34.h

noinst_DATA = $(BUILT_SOURCES)

DISTCLEANFILES = $(BUILT_SOURCES)

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

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

spring_0.h: $(srcdir)/spring.0 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.0 > $@

spring_1.h: $(srcdir)/spring.1 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.1 > $@

spring_2.h: $(srcdir)/spring.2 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.2 > $@

spring_3.h: $(srcdir)/spring.3 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.3 > $@

spring_4.h: $(srcdir)/spring.4 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.4 > $@

spring_5.h: $(srcdir)/spring.5 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.5 > $@

spring_6.h: $(srcdir)/spring.6 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.6 > $@

spring_7.h: $(srcdir)/spring.7 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.7 > $@

spring_8.h: $(srcdir)/spring.8 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.8 > $@

spring_9.h: $(srcdir)/spring.9 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.9 > $@

spring_10.h: $(srcdir)/spring.10 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.10 > $@

spring_11.h: $(srcdir)/spring.11 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.11 > $@

spring_12.h: $(srcdir)/spring.12 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.12 > $@

spring_13.h: $(srcdir)/spring.13 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.13 > $@

spring_14.h: $(srcdir)/spring.14 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.14 > $@

spring_15.h: $(srcdir)/spring.15 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.15 > $@

spring_16.h: $(srcdir)/spring.16 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.16 > $@

spring_17.h: $(srcdir)/spring.17 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.17 > $@

spring_18.h: $(srcdir)/spring.18 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.18 > $@

spring_19.h: $(srcdir)/spring.19 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.19 > $@

spring_20.h: $(srcdir)/spring.20 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.20 > $@

spring_21.h: $(srcdir)/spring.21 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.21 > $@

spring_22.h: $(srcdir)/spring.22 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.22 > $@

spring_23.h: $(srcdir)/spring.23 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.23 > $@

spring_24.h: $(srcdir)/spring.24 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.24 > $@

spring_25.h: $(srcdir)/spring.25 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.25 > $@

spring_26.h: $(srcdir)/spring.26 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.26 > $@

spring_27.h: $(srcdir)/spring.27 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.27 > $@

spring_28.h: $(srcdir)/spring.28 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.28 > $@

spring_29.h: $(srcdir)/spring.29 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.29 > $@

spring_30.h: $(srcdir)/spring.30 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.30 > $@

spring_31.h: $(srcdir)/spring.31 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.31 > $@

spring_32.h: $(srcdir)/spring.32 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.32 > $@

spring_33.h: $(srcdir)/spring.33 $(top_builddir)/bin/iv2h.sh
	$(top_builddir)/bin/iv2h.sh $(srcdir)/spring.33 > $@

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

