Commit | Line | Data |
---|---|---|
45dc11d3 JG |
1 | INIT_PY = __init__.py |
2 | INIT_PY_IN = $(srcdir)/$(INIT_PY).in | |
45dc11d3 JG |
3 | |
4 | all-local: $(INIT_PY) | |
5 | ||
6 | $(INIT_PY): $(INIT_PY_IN) | |
7 | sed "s/BABELTRACE_VERSION_STR/$(PACKAGE_VERSION)/g" < $< > $@ | |
8 | ||
4505828d JG |
9 | EXTRA_DIST = common.py reader.py writer.py $(INIT_PY_IN) |
10 | nodist_btpackage_PYTHON = $(INIT_PY) common.py reader.py writer.py | |
6027e07b | 11 | SCRIPT_LIST = common.py reader.py writer.py |
45dc11d3 JG |
12 | |
13 | btpackagedir = $(pythondir)/babeltrace | |
45dc11d3 | 14 | |
4505828d | 15 | CLEANFILES = $(INIT_PY) |
6027e07b JG |
16 | |
17 | all-local: | |
18 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
19 | for script in $(SCRIPT_LIST); do \ | |
20 | cp -f $(srcdir)/$$script $(builddir); \ | |
21 | done; \ | |
22 | fi | |
23 | ||
24 | clean-local: | |
25 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
26 | for script in $(SCRIPT_LIST); do \ | |
27 | rm -f $(builddir)/$$script; \ | |
28 | done; \ | |
29 | fi |