NULL = 

shaderdir = $(datadir)/clutk/shaders
# Please keep in alphabectical order
dist_shader_DATA = \
  AlphaMask.frag \
  BlurH0.frag \
  BlurH1.frag \
  BlurV0.frag \
  BlurV1.frag \
  ColorMask.frag \
  Exponent.frag \
  PassThrough.frag \
  PostProcessVertexShader.vtx \
  shaders.h \
  ExponentProgram.fparb.h \
  Gaussian7x7Program.fparb.h \
  MultipassBlur.fparb.h \
  TextureAlphaProgram.fparb.h \
  TextureMask.fparb.h \
  TextureProgram.fparb.h \
  VertexProgram.vparb.h

%.fparb.h: %.fparb Makefile
	echo "const char * $(subst .,_,$(basename $@)) = " > $@
	sed -e s:^\#.*::g -e s:\":\\\":g -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
	echo ";" >> $@

%.vparb.h: %.vparb Makefile
	echo "const char * $(subst .,_,$(basename $@)) = " > $@
	sed -e s:^\#.*::g -e s:\":\\\":g -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
	echo ";" >> $@
	
