v4l2-settings-restore.sh: don't use "echo -n"
[v4l2-persistent-settings.git] / Makefile
1 install:
2         install -m 755 -d $(DESTDIR)/etc/v4l2-persistent-settings
3         install -m 755 v4l2-settings-save.sh $(DESTDIR)/etc/v4l2-persistent-settings/v4l2-settings-save.sh
4         install -m 755 v4l2-settings-restore.sh $(DESTDIR)/etc/v4l2-persistent-settings/v4l2-settings-restore.sh
5         install -m 644 default.conf $(DESTDIR)/etc/default/v4l2-persistent-settings
6         install -m 644 90-v4l2-persistent-settings.rules $(DESTDIR)/lib/udev/rules.d/
7         udevadm control --reload
8
9 uninstall:
10         rm -f $(DESTDIR)/lib/udev/rules.d/90-v4l2-persistent-settings.rules
11         udevadm control --reload
12         rm -f $(DESTDIR)/etc/default/v4l2-persistent-settings
13         rm -f $(DESTDIR)/etc/v4l2-persistent-settings/v4l2-settings-restore.sh
14         rm -f $(DESTDIR)/etc/v4l2-persistent-settings/v4l2-settings-save.sh
15         rmdir $(DESTDIR)/etc/v4l2-persistent-settings || echo 'Try running "make purge".' 1>&2
16
17 purge: uninstall
18         rm -rf $(DESTDIR)/etc/v4l2-persistent-settings