Browse Source

TT#49106 Rely on upstream Makefile for building and cleaning

Move the Debian specific cleaning into a debian/clean file to avoid
having to add an override. And rely on the upstream Makefile which
should always be doing the correct job.

Change-Id: I6eb554428eafdcad13ea0490fca745ae72390f9c
changes/73/25873/3
Guillem Jover 7 years ago
parent
commit
e4a1a556fa
3 changed files with 4 additions and 16 deletions
  1. +2
    -0
      debian/.gitignore
  2. +2
    -0
      debian/clean
  3. +0
    -16
      debian/rules

+ 2
- 0
debian/.gitignore View File

@ -11,3 +11,5 @@
/ngcp-rtpengine-recording-daemon/
/ngcp-rtpengine-utils/
/ngcp-rtpengine/
README.html.gz
README.md.gz

+ 2
- 0
debian/clean View File

@ -0,0 +1,2 @@
debian/README.html.gz
debian/README.md.gz

+ 0
- 16
debian/rules View File

@ -24,20 +24,6 @@ XTABLES_DIR:=$(shell pkg-config xtables --variable=xtlibdir || echo /lib/xtables
%:
dh $@
override_dh_auto_build-arch:
$(MAKE) -C iptables-extension
$(MAKE) -C daemon
$(MAKE) -C recording-daemon
override_dh_auto_clean:
(cd daemon && $(MAKE) clean)
(cd recording-daemon && $(MAKE) clean)
(cd iptables-extension && $(MAKE) clean)
rm -f daemon/build_time.h kernel-module/.xt_RTPENGINE.o.d
rm -rf kernel-module/.tmp_versions
rm -f debian/README.html.gz debian/README.md.gz
dh_auto_clean
override_dh_auto_install-indep:
# Create the directories to install the source into
dh_installdirs -p$(psource) usr/src/modules/$(sname)/debian
@ -82,5 +68,3 @@ override_dh_systemd_enable:
override_dh_systemd_start:
dh_systemd_start --no-start
dh_systemd_start -pngcp-rtpengine-recording-daemon --name=ngcp-rtpengine-recording-nfs-mount --no-start
override_dh_auto_test:

Loading…
Cancel
Save