Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
improve debian rules file
Browse files Browse the repository at this point in the history
  • Loading branch information
klnikita committed Jun 29, 2016
1 parent a0c113c commit 0b722f3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export DH_OPTIONS
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1

RTE_TARGET ?= pktj
RTE_SDK ?= /usr/share/dpdk

include /usr/share/dpkg/default.mk

# main packaging script based on dh7 syntax
Expand All @@ -20,7 +23,7 @@ override_dh_auto_build: dh_auto_build/pktj

.PHONY: dh_auto_build/pktj
dh_auto_build/pktj:
RTE_SDK=/usr/share/dpdk RTE_TARGET=x86_64-hsw-linuxapp-gcc RTE_INCLUDE=/usr/include/dpdk make
make

override_dh_auto_test:
override_dh_auto_clean:
Expand All @@ -33,9 +36,9 @@ dh_auto_install/pktj:
mkdir -p $(CURDIR)/debian/pktj/usr/sbin
mkdir -p $(CURDIR)/debian/pktj/usr/lib
cp $(CURDIR)/scripts/*.py $(CURDIR)/debian/pktj/usr/sbin/
mv $(CURDIR)/build/app/x86_64-hsw-linuxapp-gcc/pktj $(CURDIR)/debian/pktj/usr/sbin/
mv $(CURDIR)/build/lib/libnetlink/x86_64-hsw-linuxapp-gcc/lib/* $(CURDIR)/debian/pktj/usr/lib
mv $(CURDIR)/build/lib/libneighbour/x86_64-hsw-linuxapp-gcc/lib/* $(CURDIR)/debian/pktj/usr/lib
mv $(CURDIR)/build/app/$(RTE_TARGET)/pktj $(CURDIR)/debian/pktj/usr/sbin/
mv $(CURDIR)/build/lib/libnetlink/$(RTE_TARGET)/lib/* $(CURDIR)/debian/pktj/usr/lib
mv $(CURDIR)/build/lib/libneighbour/$(RTE_TARGET)/lib/* $(CURDIR)/debian/pktj/usr/lib

override_dh_shlibdeps:

Expand Down

0 comments on commit 0b722f3

Please sign in to comment.