Commit 55693330 authored by Ophélie Gagnard's avatar Ophélie Gagnard

Makefile: Add generic paths to the install commands, so that tools to build...

Makefile: Add generic paths to the install commands, so that tools to build (mostly Debian) package work.
parent 14633a39
INCLUDE_PYTHON = $(shell pkg-config --cflags python3 | cut -f 1 -d " ")
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
bin/metadata-collect-agent:
#Error expected here (line -g++ ...), writing a C program using the error messages
install -d bin/ ;\
......@@ -33,12 +37,13 @@ lib/fluentbit_wendelin.so:
#installation/plugin-fluentbit/fluentbit_wendelin_install.sh
install-no-dracut:
install -d /sbin/
install -m 744 bin/metadata-collect-agent /sbin/metadata-collect-agent
install -m 744 bin/fluent-bit /sbin/fluent-bit
install -d /etc/
install -m 644 flb.conf /etc/flb.conf
install lib/fluentbit_wendelin.so /etc/fluentbit_wendelin.so
install -d $(DESTDIR)$(PREFIX)/bin/
install -m 744 bin/metadata-collect-agent $(DESTDIR)$(PREFIX)/bin/metadata-collect-agent
install -m 744 bin/fluent-bit $(DESTDIR)$(PREFIX)/bin/fluent-bit
install -d $(DESTDIR)$(PREFIX)/etc/
install -m 644 flb.conf $(DESTDIR)$(PREFIX)/etc/flb.conf
install -d $(DESTDIR)$(PREFIX)/lib
install lib/fluentbit_wendelin.so $(DESTDIR)$(PREFIX)/lib/fluentbit_wendelin.so
no-dracut: bin/metadata-collect-agent lib/fluentbit_wendelin.so bin/fluent-bit
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment