Is there a recommended way for dealing with binaries that are simple
shell scripts in automake?  I currently use something like the
following:

   bin_PROGRAMS = myprog

   myprog_SOURCES = myprog.sh
   myprog: myprog.sh

   %: %.sh
           $(shbin_verbose)cp $< $@; chmod +x $@

   shbin_verbose = $(shbin_verbose_$(V))
   shbin_verbose_ = $(shbin_verbose_$(AM_DEFAULT_VERBOSITY))
   shbin_verbose_0 = @echo "  SHBIN  " $@;

But the fact that I need to explicitly state the "myprog: myprog.sh"
dependency makes it feel a bit hackish, and I'm wondering if there's
some more proper method...

Thanks,

-miles

-- 
古池や 蛙飛び込む 水の音 [松尾芭蕉]

Reply via email to