@@ -10,10 +10,11 @@ install:
1010 @if [ $( BASH_COMPLETION_DIR) ]; then \
1111 cp notes.bash_completion " $( BASH_COMPLETION_DIR) /notes" ; \
1212 else \
13- echo " Bash Completion was not installed, because the directory was" \
14- " not found. if you have bash completion installed, follow the" \
15- " README (https://github.com/pimterry/notes#installing-bash-completion)" \
16- " to manually install it." ; \
13+ printf \
14+ "Bash completion was not installed, because the directory was not found. \
15+ If you have bash completion installed, follow the README \
16+ (https ://github.com/pimterry/notes# installing-bash-completion) \
17+ to manually install it.\n\n"; \
1718 fi # Small test for bash completion support
1819 @install -m755 -d $(PREFIX ) /bin/
1920 @install -m755 notes $(PREFIX ) /bin/
@@ -22,15 +23,18 @@ install:
2223 @install -d $(PREFIX ) /share/man/man1/
2324 @install notes.1 $(PREFIX ) /share/man/man1/
2425 @mandb 1> /dev/null 2>&1 # Fail silently if we don't have a mandb
25- @echo -e " Notes has been installed to $( PREFIX) /bin/notes." \
26- " A configuration file has also been created at" \
27- " $( USERDIR) /.config/notes/config," \
28- " which you can edit if you'd like to change the default settings." \
29- " \nGet started now by running notes open my-new-note" \
30- " Or you can run notes help for more info"
31-
26+
27+ @printf \
28+ "Notes has been installed to $(PREFIX)/bin/notes. \
29+ A configuration file has also been created at $(USERDIR)/.config/notes/config, \
30+ which you can edit if you'd like to change the default settings.\n\n\
31+ Get started now by running 'notes new my-note' \
32+ or you can run 'notes help' for more info.\n"
33+
3234uninstall :
3335 rm -f $(PREFIX ) /bin/notes
3436 rm -f $(PREFIX ) /share/man/man1/notes.1
3537 rm -f $(BASH_COMPLETION_DIR ) /notes
3638 rm -f $(USERDIR ) /.config/notes/config.example
39+
40+ @printf "\nNotes has now been uninstalled.\n"
0 commit comments