-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
15 lines (14 loc) · 850 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SHELL=/bin/bash
nautilus_path=`which nautilus`
install:
mkdir -p ~/.local/share/nautilus-python/extensions/nautilus-copy-path
cp nautilus-copy-path.py ~/.local/share/nautilus-python/extensions
cp nautilus_copy_path.py translation.py config.json ~/.local/share/nautilus-python/extensions/nautilus-copy-path
cp -rf translations ~/.local/share/nautilus-python/extensions/nautilus-copy-path
@echo 'Restarting nautilus'
@${nautilus_path} -q||true # This is due to nautilus -q always returning 255 status which causes makefile to think it failed
uninstall:
rm ~/.local/share/nautilus-python/extensions/nautilus-copy-path.py
rm -rf ~/.local/share/nautilus-python/extensions/nautilus-copy-path
@echo 'Restarting nautilus'
@${nautilus_path} -q||true # This is due to nautilus -q always returning 255 status which causes makefile to think it failed