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.
-PHONY = install uninstall test deb
+PHONY = install uninstall test
ifeq ($(PREFIX), )
PREFIX = /usr
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)