blob: 0869afa3f835e21ac63ce317bb3e96736f321d5a [file] [log] [blame]
Shad Ansari6cd46a62018-05-13 23:20:51 +00001#!/usr/bin/make -f
2# See debhelper(7) (uncomment to enable)
3# output every command that modifies files on the build system.
4#DH_VERBOSE = 1
5
6# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7DPKG_EXPORT_BUILDFLAGS = 1
8include /usr/share/dpkg/default.mk
9
10# see FEATURE AREAS in dpkg-buildflags(1)
11#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12
13# see ENVIRONMENT in dpkg-buildflags(1)
14# package maintainers to append CFLAGS
15#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
16# package maintainers to append LDFLAGS
17#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
18
19# main packaging script based on dh7 syntax
20%:
21 dh $@
22
23DOCS=LEGAL_TERMS README LICENSE_APACHE20
24
25DEB_DH_INSTALL_SOURCEDIR = $(CURDIR)/debian/tmp
26
27override_dh_auto_install:
28 mkdir -p $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Jason Huangc6362792020-03-04 16:33:19 +080029 cp -a $(CURDIR)/debian/release_asfvolt16_V3.4.3.3.202002100101.tar.gz $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Shad Ansari9fb007d2018-05-14 18:31:38 +000030 cp -a $(CURDIR)/debian/libgrpc++.so.1 $(DEB_DH_INSTALL_SOURCEDIR)/tmp
31 cp -a $(CURDIR)/debian/libgrpc.so.6 $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000032 cp -a $(CURDIR)/debian/libstdc++.so.6 $(DEB_DH_INSTALL_SOURCEDIR)/tmp
33 cp -a $(CURDIR)/debian/libbal_host_api.so $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Shad Ansari9fb007d2018-05-14 18:31:38 +000034 cp -a $(CURDIR)/debian/openolt $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Shad Ansarid0eaf752018-08-16 00:26:12 +000035 cp -a $(CURDIR)/debian/init.d $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Nicolas Palpacuer967438f2018-09-07 14:41:54 -040036 cp -a $(CURDIR)/debian/logrotate.d $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Girish Gowdra6e745522020-07-15 15:52:13 -070037 cp -a $(CURDIR)/debian/watchdog $(DEB_DH_INSTALL_SOURCEDIR)/tmp
Shad Ansari6cd46a62018-05-13 23:20:51 +000038
Shad Ansaricb004c52018-05-30 18:07:23 +000039#override_dh_shlibdeps:
40# dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info -l$(ONLP_LIB_PATH):$(OFDPA_LIB_PATH)
Shad Ansari6cd46a62018-05-13 23:20:51 +000041
42# avoid auto strip for debug ofagentapp.dbg
43#
44#override_dh_strip:
45# echo "No auto strip!"
46
47#override_dh_installdeb:
48# dh_installdeb
49# for pkg in $$(dh_listpackages); do \
50# sed -i -e 's!#DEB_SOURCE#!$(DEB_SOURCE)!' debian/$$pkg/DEBIAN/*; \
51# sed -i -e 's!#OPDPA_VER_SUFFIX#!-$(OPDPA_VER)!g' debian/$$pkg/DEBIAN/*; \
52# done
53
54test:
55 @echo DEB_SOURCE=$(DEB_SOURCE)
56 @echo DEB_VERSION=$(DEB_VERSION)
57 @echo DEB_VERSION_EPOCH_UPSTREAM=$(DEB_VERSION_EPOCH_UPSTREAM)
58 @echo DEB_VERSION_UPSTREAM_REVISION=$(DEB_VERSION_UPSTREAM_REVISION)
59 @echo DEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM)
60 @echo DEB_DISTRIBUTION=$(DEB_DISTRIBUTION)
61 @echo DEB_HOST_ARCH=$(DEB_HOST_ARCH)
62 @echo DEB_HOST_ARCH_CPU=$(DEB_HOST_ARCH_CPU)
63 @echo DEB_HOST_ARCH_OS=$(DEB_HOST_ARCH_OS)
64 @echo DEB_HOST_GNU_TYPE=$(DEB_HOST_GNU_TYPE)
65 @echo DEB_HOST_GNU_CPU=$(DEB_HOST_GNU_CPU)
66 @echo DEB_HOST_GNU_SYSTEM=$(DEB_HOST_GNU_SYSTEM)
67 @echo DEB_BUILD_ARCH=$(DEB_BUILD_ARCH)
68 @echo DEB_BUILD_ARCH_CPU=$(DEB_BUILD_ARCH_CPU)
69 @echo DEB_BUILD_ARCH_OS=$(DEB_BUILD_ARCH_OS)
70 @echo DEB_BUILD_GNU_TYPE=$(DEB_BUILD_GNU_TYPE)
71 @echo DEB_BUILD_GNU_CPU=$(DEB_BUILD_GNU_CPU)
72 @echo DEB_BUILD_GNU_SYSTEM=$(DEB_BUILD_GNU_SYSTEM)
73 @echo ONLP_LIB_PATH=$(ONLP_LIB_PATH)
74# @echo OFDPA_LIB_PATH=$(OFDPA_LIB_PATH)
75# @echo OFDPA_BIN_PATH=$(OFDPA_BIN_PATH)