From 7bf3bdff7c443e6e248ed95bd853026e49cee873 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Mon, 24 Jan 2022 12:01:31 +0900 Subject: [PATCH] Makefile: Remove `deb` rule and use `find` to set permissions The `deb` rule provided by the Makefile is not necessary for builds using foundry and can be removed. Further, the Makefile does not use `find` for setting permissions during installation, making changes necessary when new modules are added. This commit removes the `deb` rule from the Makefile and changes the `install` rule to make use of `find` to set permissions on files and directories. --- Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 9fd2a60..9ab7163 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PHONY = install uninstall test deb +PHONY = install uninstall test ifeq ($(PREFIX), ) PREFIX = /usr @@ -11,15 +11,13 @@ clean: test: install: - chown -R root.root include/*.sh - chmod -R 644 include/*.sh + chown -R root.root include + find include -type d -exec chmod 755 {} \; + find include -type f -exec chmod 644 {} \; mkdir -p $(DESTDIR)$(PREFIX)/share/toolbox/include - cp -a include/ssh.sh $(DESTDIR)$(PREFIX)/share/toolbox/include/. + cp -a include/* $(DESTDIR)$(PREFIX)/share/toolbox/include/. uninstall: rm $(DESTDIR)$(PREFIX)/share/toolbox/include/ssh.sh -deb: - dpkg-buildpackage --no-sign - .PHONY: $(PHONY) -- 2.47.3