From: Matthias Kruk Date: Mon, 24 Jan 2022 03:01:31 +0000 (+0900) Subject: Makefile: Remove `deb` rule and use `find` to set permissions X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;p=toolbox-goodies 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. --- 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)