bin_SCRIPTS = rast \ rast-config if WANT_RUBYLIB bin_SCRIPTS += rast-search noinst_SCRIPTS = rast-db-convert endif EXTRA_DIST = rast \ rast-config.in \ rast-db-convert.in \ rast-search.in CLEANFILES = rast-config if WANT_RUBYLIB CLEANFILES += rast-db-convert \ rast-search endif rast-config: rast-config.in Makefile rm -f $@ sed -e 's!%prefix%!$(prefix)!g' \ -e 's!%exec_prefix%!$(exec_prefix)!g' \ -e 's!%bindir%!$(bindir)!g' \ -e 's!%libdir%!$(libdir)!g' \ -e 's!%includedir%!$(includedir)!g' \ -e 's!%CC%!$(CC)!g' \ -e 's!%CFLAGS%!$(CFLAGS)!g' \ -e 's!%CPPFLAGS%!$(CPPFLAGS)!g' \ -e 's!%LDFLAGS%!$(LDFLAGS)!g' \ -e 's!%LIBS%!$(LIBS)!g' \ -e 's!%APR_INCLUDES%!$(APR_INCLUDES)!g' \ -e 's!%APR_LIBS_LD%!$(APR_LIBS_LD)!g' \ -e 's!%APR_LIBS_LIBTOOL%!$(APR_LIBS_LIBTOOL)!g' \ -e 's!%DB_INCLUDES%!$(DB_INCLUDES)!g' \ -e 's!%DB_LIBS%!$(DB_LIBS)!g' \ -e 's!%encodingdir%!$(encodingdir)!g' \ -e 's!%version%!$(VERSION)!g' \ $(srcdir)/rast-config.in > $@ chmod a+x $@ chmod a-w $@ rast-db-convert: rast-db-convert.in Makefile rm -f $@ sed -e 's!%RUBY%!$(RUBY)!g' \ $(srcdir)/rast-db-convert.in > $@ chmod a+x $@ chmod a-w $@ rast-search: rast-search.in Makefile rm -f $@ sed -e 's!%RUBY%!$(RUBY)!g' \ $(srcdir)/rast-search.in > $@ chmod a+x $@ chmod a-w $@