[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dealing with executable shell scripts
From: |
Miles Bader |
Subject: |
dealing with executable shell scripts |
Date: |
Tue, 20 Mar 2012 07:00:28 +0900 |
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
--
古池や 蛙飛び込む 水の音 [松尾芭蕉]
- dealing with executable shell scripts,
Miles Bader <=
- Re: dealing with executable shell scripts, Russ Allbery, 2012/03/19
- Re: dealing with executable shell scripts, Harlan Stenn, 2012/03/19
- Re: dealing with executable shell scripts, Russ Allbery, 2012/03/19
- Re: dealing with executable shell scripts, Miles Bader, 2012/03/19
- Re: dealing with executable shell scripts, Harlan Stenn, 2012/03/19
- Re: dealing with executable shell scripts, Harlan Stenn, 2012/03/19
- Re: dealing with executable shell scripts, Miles Bader, 2012/03/19
- Re: dealing with executable shell scripts, Harlan Stenn, 2012/03/19
- Re: dealing with executable shell scripts, Harlan Stenn, 2012/03/19
- Re: dealing with executable shell scripts, Andrew W. Nosenko, 2012/03/20