Commit 803eaf73 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 5c408a5b
INCLUDE_PYTHON = $(shell pkg-config --cflags python3 | cut -f 1 -d " ") INCLUDE_PYTHON = $(shell pkg-config --cflags python3 | cut -f 1 -d " ")
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
bin/metadata-collect-agent: bin/metadata-collect-agent:
#Error expected here (line -g++ ...), writing a C program using the error messages #Error expected here (line -g++ ...), writing a C program using the error messages
install -d bin/ ;\ install -d bin/ ;\
...@@ -33,12 +37,13 @@ lib/fluentbit_wendelin.so: ...@@ -33,12 +37,13 @@ lib/fluentbit_wendelin.so:
#installation/plugin-fluentbit/fluentbit_wendelin_install.sh #installation/plugin-fluentbit/fluentbit_wendelin_install.sh
install-no-dracut: install-no-dracut:
install -d /sbin/ install -d $(DESTDIR)$(PREFIX)/bin/
install -m 744 bin/metadata-collect-agent /sbin/metadata-collect-agent install -m 744 bin/metadata-collect-agent $(DESTDIR)$(PREFIX)/bin/metadata-collect-agent
install -m 744 bin/fluent-bit /sbin/fluent-bit install -m 744 bin/fluent-bit $(DESTDIR)$(PREFIX)/bin/fluent-bit
install -d /etc/ install -d $(DESTDIR)$(PREFIX)/etc/
install -m 644 flb.conf /etc/flb.conf install -m 644 flb.conf $(DESTDIR)$(PREFIX)/etc/flb.conf
install lib/fluentbit_wendelin.so /etc/fluentbit_wendelin.so 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 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