MT#55283 provide "make install" targets

Provide the targets for the two /bin/ components.
Adapt .install debhelper files.
Adapt iptables module install location to use the environment variable.

Change-Id: I963feba5f60f53773e497121d8947e7b4997d687
pull/1592/head
Richard Fuchs 2 years ago
parent 92ef924f5a
commit 797fc0e06b

@ -25,6 +25,13 @@ ifeq ($(with_transcoding),yes)
endif
$(MAKE) -C iptables-extension
install:
$(MAKE) -C daemon install
ifeq ($(with_transcoding),yes)
$(MAKE) -C recording-daemon install
endif
$(MAKE) -C iptables-extension install
coverity:
$(MAKE) -C daemon
ifeq ($(with_transcoding),yes)
@ -36,6 +43,9 @@ endif
with-kernel: all
$(MAKE) -C kernel-module
install-with-kernel: all install
$(MAKE) -C kernel-module install
distclean clean:
$(MAKE) -C daemon clean
$(MAKE) -C recording-daemon clean

@ -93,3 +93,6 @@ PODS= rtpengine.pod
MANS= $(PODS:.pod=.8)
include ../lib/common.Makefile
install: $(TARGET)
install -m 0755 -D $(TARGET) $(DESTDIR)/usr/bin/$(TARGET)

@ -1,3 +1,3 @@
daemon/rtpengine /usr/bin/
debian/ngcp-rtpengine-iptables-setup /usr/sbin
etc/rtpengine.conf /etc/rtpengine/
usr/bin/rtpengine

@ -1 +1 @@
iptables-extension/libxt_RTPENGINE.so ${env:XTABLES_DIR}
${env:XTABLES_DIR}/libxt_RTPENGINE.so ${env:XTABLES_DIR}

@ -1,3 +1,3 @@
debian/ngcp-rtpengine-recording-nfs-setup /usr/sbin/
etc/rtpengine-recording.conf /etc/rtpengine/
recording-daemon/rtpengine-recording /usr/bin/
usr/bin/rtpengine-recording

@ -37,6 +37,8 @@ ifeq ($(XTABLES),1)
WORK=1
module: libxt_RTPENGINE.so
XTABLES_DIR ?= $(shell pkg-config xtables --variable=xtlibdir || echo /lib/xtables)
libxt_RTPENGINE.so: libxt_RTPENGINE.c
$(CC) $(CFLAGS) -o libxt_RTPENGINE.so libxt_RTPENGINE.c
@ -68,4 +70,4 @@ clean:
rm -f libxt_RTPENGINE.so libipt_RTPENGINE.so libip6t_RTPENGINE.so
install:
install -D libxt_RTPENGINE.so $(DESTDIR)$(shell pkg-config xtables --variable=xtlibdir)/libxt_RTPENGINE.so
install -D libxt_RTPENGINE.so $(DESTDIR)$(XTABLES_DIR)/libxt_RTPENGINE.so

@ -39,3 +39,6 @@ PODS= rtpengine-recording.pod
MANS= $(PODS:.pod=.8)
include ../lib/common.Makefile
install: $(TARGET)
install -m 0755 -D $(TARGET) $(DESTDIR)/usr/bin/$(TARGET)

Loading…
Cancel
Save