From c633ba3ead9bf1453e739c62662096e81427bca0 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Tue, 21 May 2024 14:25:06 -0300 Subject: build: line-break sh install commands And remove the extraneous semicolon at the end of the command string. See also commit dae3933bc ("rework make realinstall and uninstall (#3435)", 2020-06-04). --- Makefile | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 575c3882b..2144d3336 100644 --- a/Makefile +++ b/Makefile @@ -245,7 +245,9 @@ endif $(INSTALL) -m 0755 -d $(DESTDIR)$(sysconfdir)/firejail/firecfg.d $(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/firejail src/firecfg/firecfg.config $(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/firejail etc/profile-a-l/*.profile etc/profile-m-z/*.profile etc/inc/*.inc etc/net/*.net etc/firejail.config - sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then $(INSTALL) -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; fi;" + sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/firejail/login.users ]; then \ + $(INSTALL) -c -m 0644 etc/login.users $(DESTDIR)/$(sysconfdir)/firejail/.; \ + fi" ifeq ($(HAVE_IDS),-DHAVE_IDS) $(INSTALL) -m 0644 -t $(DESTDIR)$(sysconfdir)/firejail etc/ids.config endif @@ -254,14 +256,25 @@ ifeq ($(BUSYBOX_WORKAROUND),yes) endif ifeq ($(HAVE_APPARMOR),-DHAVE_APPARMOR) # install apparmor profile - sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d ]; then $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d; fi;" + sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d ]; then \ + $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d; \ + fi" $(INSTALL) -m 0644 etc/apparmor/firejail-default $(DESTDIR)$(sysconfdir)/apparmor.d # install apparmor profile customization file - sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/local ]; then $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/local; fi;" - sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/apparmor.d/local/firejail-default ]; then $(INSTALL) -c -m 0644 etc/apparmor/firejail-local $(DESTDIR)/$(sysconfdir)/apparmor.d/local/firejail-default; fi;" + sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/local ]; then \ + $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/local; \ + fi" + sh -c "if [ ! -f $(DESTDIR)/$(sysconfdir)/apparmor.d/local/firejail-default ]; then \ + $(INSTALL) -c -m 0644 etc/apparmor/firejail-local \ + $(DESTDIR)/$(sysconfdir)/apparmor.d/local/firejail-default; \ + fi" # install apparmor base abstraction drop-in - sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions ]; then $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions; fi;" - sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions/base.d ]; then $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions/base.d; fi;" + sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions ]; then \ + $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions; \ + fi" + sh -c "if [ ! -d $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions/base.d ]; then \ + $(INSTALL) -d -m 755 $(DESTDIR)/$(sysconfdir)/apparmor.d/abstractions/base.d; \ + fi" $(INSTALL) -m 0644 etc/apparmor/firejail-base $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/base.d endif ifneq ($(HAVE_MAN),no) -- cgit v1.2.3-70-g09d2