]> git.corax.cc Git - toolbox-goodies/commitdiff
Makefile: Remove `deb` rule and use `find` to set permissions stable
authorMatthias Kruk <m@m10k.eu>
Mon, 24 Jan 2022 03:01:31 +0000 (12:01 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 24 Jan 2022 03:01:31 +0000 (12:01 +0900)
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

index 9fd2a6036de440d1c9e5a92b1ac360a5be5c457a..9ab7163ab40ad362d9e01bcb5f5b83b35f6e62d8 100644 (file)
--- 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)