@@ -10,10 +10,11 @@ install:
10
10
@if [ $( BASH_COMPLETION_DIR) ]; then \
11
11
cp notes.bash_completion " $( BASH_COMPLETION_DIR) /notes" ; \
12
12
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"; \
17
18
fi # Small test for bash completion support
18
19
@install -m755 -d $(PREFIX ) /bin/
19
20
@install -m755 notes $(PREFIX ) /bin/
@@ -22,15 +23,18 @@ install:
22
23
@install -d $(PREFIX ) /share/man/man1/
23
24
@install notes.1 $(PREFIX ) /share/man/man1/
24
25
@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
+
32
34
uninstall :
33
35
rm -f $(PREFIX ) /bin/notes
34
36
rm -f $(PREFIX ) /share/man/man1/notes.1
35
37
rm -f $(BASH_COMPLETION_DIR ) /notes
36
38
rm -f $(USERDIR ) /.config/notes/config.example
39
+
40
+ @printf "\nNotes has now been uninstalled.\n"
0 commit comments