Holger Hans Peter Freyther | 23e8000 | 2012-11-22 14:59:46 +0100 | [diff] [blame] | 1 | SUBDIRS = gsm0408 db channel mgcp gprs si abis |
Holger Hans Peter Freyther | a8dffc1 | 2010-07-30 02:53:14 +0800 | [diff] [blame] | 2 | |
| 3 | if BUILD_NAT |
| 4 | SUBDIRS += bsc-nat |
| 5 | endif |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 6 | |
| 7 | |
| 8 | # The `:;' works around a Bash 3.2 bug when the output is not writeable. |
Holger Hans Peter Freyther | 34abf21 | 2012-01-09 22:53:04 +0100 | [diff] [blame] | 9 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 10 | :;{ \ |
| 11 | echo '# Signature of the current package.' && \ |
| 12 | echo 'm4_define([AT_PACKAGE_NAME],' && \ |
| 13 | echo ' [$(PACKAGE_NAME)])' && \ |
| 14 | echo 'm4_define([AT_PACKAGE_TARNAME],' && \ |
| 15 | echo ' [$(PACKAGE_TARNAME)])' && \ |
| 16 | echo 'm4_define([AT_PACKAGE_VERSION],' && \ |
| 17 | echo ' [$(PACKAGE_VERSION)])' && \ |
| 18 | echo 'm4_define([AT_PACKAGE_STRING],' && \ |
| 19 | echo ' [$(PACKAGE_STRING)])' && \ |
| 20 | echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \ |
| 21 | echo ' [$(PACKAGE_BUGREPORT)])'; \ |
| 22 | echo 'm4_define([AT_PACKAGE_URL],' && \ |
| 23 | echo ' [$(PACKAGE_URL)])'; \ |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 24 | } >'$(srcdir)/package.m4' |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 25 | |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 26 | EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) |
| 27 | TESTSUITE = $(srcdir)/testsuite |
Daniel Willmann | d5124e7 | 2012-12-26 12:25:36 +0100 | [diff] [blame^] | 28 | DISTCLEANFILES = atconfig |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 29 | |
| 30 | check-local: atconfig $(TESTSUITE) |
| 31 | $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) |
| 32 | |
| 33 | installcheck-local: atconfig $(TESTSUITE) |
| 34 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \ |
| 35 | $(TESTSUITEFLAGS) |
| 36 | |
| 37 | clean-local: |
| 38 | test ! -f '$(TESTSUITE)' || \ |
| 39 | $(SHELL) '$(TESTSUITE)' --clean |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 40 | |
| 41 | AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te |
| 42 | AUTOTEST = $(AUTOM4TE) --language=autotest |
Holger Hans Peter Freyther | 3073cb0 | 2012-01-09 21:49:47 +0100 | [diff] [blame] | 43 | $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 |
Holger Hans Peter Freyther | fee826b | 2012-01-06 15:16:12 +0100 | [diff] [blame] | 44 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at |
| 45 | mv $@.tmp $@ |