Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | DH_VERBOSE = 1 |
Damjan Marion | 561f273 | 2018-09-21 12:27:45 +0200 | [diff] [blame] | 3 | DEB_BUILD_OPTIONS = noddebs |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 4 | PKG=vpp-ext-deps |
| 5 | |
| 6 | VERSION = $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: //p') |
| 7 | BASE_VER = $(word 1, $(subst -, ,$(VERSION))) |
| 8 | |
Damjan Marion | 561f273 | 2018-09-21 12:27:45 +0200 | [diff] [blame] | 9 | export BUILD_DIR=$(CURDIR)/_build |
| 10 | export INSTALL_DIR=$(CURDIR)/debian/tmp/opt/vpp/external/$(shell uname -m)/ |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 11 | |
| 12 | MAKE_ARGS=-C .. |
| 13 | |
| 14 | include /usr/share/dpkg/default.mk |
| 15 | |
| 16 | %: |
| 17 | dh $@ |
| 18 | |
| 19 | override_dh_clean: |
| 20 | make $(MAKE_ARGS) clean |
| 21 | |
| 22 | override_dh_auto_configure: |
Damjan Marion | 4a6cb83 | 2018-09-18 18:41:38 +0200 | [diff] [blame] | 23 | |
| 24 | override_dh_install: |
| 25 | make $(MAKE_ARGS) install |
| 26 | dh_install -p$(PKG) --autodest /opt |
| 27 | |