-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathMakefile.subdir
More file actions
39 lines (33 loc) · 1.24 KB
/
Makefile.subdir
File metadata and controls
39 lines (33 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
my_bin_scripts = scripts/codes_configurator \
scripts/codes_filter_configs \
scripts/codes_config_get_vals
bin_SCRIPTS += $(my_bin_scripts) scripts/_configurator.py
EXTRA_DIST += scripts/codes_configurator.py.in \
scripts/codes_filter_configs.py.in \
scripts/codes_config_get_vals.py.in \
scripts/configurator.py \
scripts/example/example.template \
scripts/example/params.py \
scripts/allocation_gen/config_alloc.conf \
scripts/allocation_gen/config_alloc-upd.conf \
scripts/allocation_gen/listgen.py \
scripts/allocation_gen/listgen-upd.py \
scripts/allocation_gen/README
CLEANFILES += $(my_bin_scripts)
# manual rules for now
do_subst = sed -e 's![@]bindir[@]!$(bindir)!g'
.PHONY: scriptdir
# need to ensure that the scripts directory exists before running the sub cmd
scriptdir:
test -d scripts || mkdir scripts
%: %.py.in Makefile scriptdir
$(do_subst) < $< > $@
chmod +x $@
scripts/_configurator.py: scripts/configurator.py
cp $^ $@
# install hook for configurator utility lib
# TODO: actually use the install program, use more of a 'standard' approach
#install-data-local:
#install -m 644 $(top_srcdir)/scripts/configurator.py $(libdir)
#uninstall-local:
#rm -f $(libdir)/configurator.py