Brenden Blanco | bd8fea4 | 2015-08-25 23:14:25 -0700 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | # Uncomment this to turn on verbose mode. |
| 5 | #export DH_VERBOSE=1 |
| 6 | |
Brenden Blanco | 9e5c352 | 2015-08-26 00:13:23 -0700 | [diff] [blame] | 7 | DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: (.*),\1,p") |
| 8 | DEBIAN_REVISION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: ([0-9.]+)(~|-)(.*),\3,p") |
| 9 | UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: ([0-9.]+)(~|-)(.*),\1,p") |
| 10 | |
Brenden Blanco | bd8fea4 | 2015-08-25 23:14:25 -0700 | [diff] [blame] | 11 | %: |
| 12 | dh $@ --buildsystem=cmake --parallel |
Brenden Blanco | 9e5c352 | 2015-08-26 00:13:23 -0700 | [diff] [blame] | 13 | |
Florian Schmidt | 6e632ad | 2017-03-06 17:30:55 +0100 | [diff] [blame] | 14 | # tests cannot be run in parallel |
| 15 | override_dh_auto_test: |
| 16 | dh_auto_test -O--buildsystem=cmake -O--no-parallel |
| 17 | |
Brenden Blanco | 7e00fc1 | 2015-10-12 11:13:48 -0700 | [diff] [blame] | 18 | # FIXME: LLVM_DEFINITIONS is broken somehow in LLVM cmake upstream |
Brenden Blanco | 9e5c352 | 2015-08-26 00:13:23 -0700 | [diff] [blame] | 19 | override_dh_auto_configure: |
Brenden Blanco | 639498a | 2016-08-15 11:58:16 -0700 | [diff] [blame] | 20 | dh_auto_configure -- -DREVISION_LAST=$(UPSTREAM_VERSION) -DREVISION=$(UPSTREAM_VERSION) -DLLVM_DEFINITIONS="-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" |