| 1 | INIT_PY = __init__.py |
| 2 | INIT_PY_IN = $(srcdir)/$(INIT_PY).in |
| 3 | |
| 4 | all-local: $(INIT_PY) |
| 5 | |
| 6 | $(INIT_PY): $(INIT_PY_IN) |
| 7 | sed "s/BABELTRACE_VERSION_STR/$(PACKAGE_VERSION)/g" < $< > $@ |
| 8 | |
| 9 | EXTRA_DIST = common.py reader.py writer.py $(INIT_PY_IN) |
| 10 | nodist_btpackage_PYTHON = $(INIT_PY) common.py reader.py writer.py |
| 11 | SCRIPT_LIST = common.py reader.py writer.py |
| 12 | |
| 13 | btpackagedir = $(pythondir)/babeltrace |
| 14 | |
| 15 | CLEANFILES = $(INIT_PY) |
| 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 |