lilypond-1.3.145
[lilypond.git] / make / Scripts.make
blob151afe16a2b59e32b981d07a2986667c4d592daa
3 PERL_SCRIPTS_IN = $(wildcard *.pl)
4 PERL_SCRIPTS = $(addprefix $(outdir)/, $(PERL_SCRIPTS_IN:.pl=))
5 SH_SCRIPTS_IN = $(wildcard *.sh)
6 SH_SCRIPTS = $(addprefix $(outdir)/, $(SH_SCRIPTS_IN:.sh=))
7 PYTHON_SCRIPTS_IN = $(wildcard *.py)
8 PYTHON_SCRIPTS = $(addprefix $(outdir)/, $(PYTHON_SCRIPTS_IN:.py=))
9 ALL_SCRIPTS_IN = $(SH_SCRIPTS_IN) $(PERL_SCRIPTS_IN) $(PYTHON_SCRIPTS_IN)
10 EXTRA_DISTFILES += $(ALL_SCRIPTS_IN)
12 all: $(PERL_SCRIPTS) $(PYTHON_SCRIPTS) $(SH_SCRIPTS)
14 $(outdir)/%: %.pl
15 sed 's!@PERL@!$(PERL)!' < $< > $@
16 chmod 755 $@
18 #FIXME. Check for bash?
19 $(outdir)/%: %.sh
20 sed 's!@SH@!$(SHELL)!' < $< > $@
21 chmod 755 $@
23 $(outdir)/%: %.py
24 sed 's!@PYTHON@!$(PYTHON)!' < $< > $@
25 chmod 755 $@