| 1 | SUBDIRS = utils bin lib |
| 2 | |
| 3 | EXTRA_DIST = $(srcdir)/ctf-traces/** tests |
| 4 | if ENABLE_DEBUGINFO |
| 5 | EXTRA_DIST += $(srcdir)/debuginfo-data/** tests_debuginfo |
| 6 | endif |
| 7 | |
| 8 | SCRIPT_LIST = run.sh |
| 9 | |
| 10 | dist_noinst_SCRIPTS = $(SCRIPT_LIST) |
| 11 | |
| 12 | all-local: |
| 13 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 14 | for script in $(SCRIPT_LIST); do \ |
| 15 | cp -f $(srcdir)/$$script $(builddir); \ |
| 16 | done; \ |
| 17 | fi |
| 18 | |
| 19 | clean-local: |
| 20 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ |
| 21 | for script in $(SCRIPT_LIST); do \ |
| 22 | rm -f $(builddir)/$$script; \ |
| 23 | done; \ |
| 24 | fi |
| 25 | |
| 26 | TEMPLIST := $(shell mktemp -u) |
| 27 | check-am: |
| 28 | @cat $(srcdir)/tests > $(TEMPLIST) |
| 29 | if ENABLE_DEBUGINFO |
| 30 | @echo '' >> $(TEMPLIST) |
| 31 | @cat $(srcdir)/tests_debuginfo >> $(TEMPLIST) |
| 32 | endif |
| 33 | ./run.sh $(TEMPLIST) |
| 34 | rm $(TEMPLIST) |