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
)
15 sed
's!@PERL@!$(PERL)!' < $< > $@
18 #FIXME. Check for bash?
20 sed
's!@SH@!$(SHELL)!' < $< > $@
24 sed
's!@PYTHON@!$(PYTHON)!' < $< > $@