2020-12-06 16:40:03 +01:00
|
|
|
.PHONY: all install clean copy remove
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
clean: remove
|
|
|
|
|
|
|
|
install: permissions
|
|
|
|
|
|
|
|
permissions: copy
|
2020-12-26 15:15:54 +01:00
|
|
|
chmod 755 /usr/local/bin/notify
|
2020-12-06 16:40:03 +01:00
|
|
|
chmod 755 /usr/local/bin/execNotify
|
|
|
|
find /usr/local/bin/execNotifyDir \( -type d -exec chmod 755 {} + \) -o \( -type f -exec chmod 644 {} + \)
|
|
|
|
chown root:root /usr/local/bin/execNotify
|
|
|
|
chown -R root:root /usr/local/bin/execNotifyDir
|
|
|
|
|
|
|
|
copy:
|
2020-12-26 15:15:54 +01:00
|
|
|
cp notify /usr/local/bin/notify
|
2020-12-06 16:40:03 +01:00
|
|
|
cp execNotify /usr/local/bin/execNotify
|
|
|
|
cp -r execNotifyDir/ /usr/local/bin/
|
|
|
|
|
|
|
|
remove:
|
2020-12-26 15:15:54 +01:00
|
|
|
rm /usr/local/bin/notify
|
2020-12-06 16:40:03 +01:00
|
|
|
rm /usr/local/bin/execNotify
|
|
|
|
rm -r /usr/local/bin/execNotifyDir
|