@@ -14,21 +14,27 @@ If you have bash completion installed, follow the README \
14
14
(https ://github.com/pimterry/notes# installing-bash-completion) \
15
15
to manually install it.\n\n"; \
16
16
fi # Small test for bash completion support
17
+
17
18
@install -m755 -d $(PREFIX)/bin/
18
19
@install -m755 notes $(PREFIX)/bin/
19
- @install -m777 -d $(USERDIR ) /.config/notes/
20
- @install -m777 config $(USERDIR ) /.config/notes/
21
20
@install -d $(PREFIX)/share/man/man1/
22
21
@install notes.1 $(PREFIX)/share/man/man1/
23
22
24
23
@mandb 1>/dev/null 2>&1 || true # Fail silently if we don't have a mandb
25
24
25
+ @printf "Notes has been installed to $(PREFIX)/bin/notes.\n"
26
+
27
+ @if [ ! -f $(USERDIR)/.config/notes/config ]; then \
28
+ install -m777 -d $(USERDIR)/.config/notes/; \
29
+ install -m777 config $(USERDIR)/.config/notes/; \
30
+ printf \
31
+ "A configuration file has also been created at $(USERDIR)/.config/notes/config, \
32
+ which you can edit if you'd like to change the default settings.\n"; \
33
+ fi # install default config file if non present
34
+
26
35
@printf \
27
- "Notes has been installed to $(PREFIX)/bin/notes. \
28
- A configuration file has also been created at $(USERDIR)/.config/notes/config, \
29
- which you can edit if you'd like to change the default settings.\n\n\
30
- Get started now by running 'notes new my-note' \
31
- or you can run 'notes help' for more info.\n"
36
+ "\nGet started now by running 'notes new my-note' \
37
+ or you can run 'notes help' for more info.\n"; \
32
38
33
39
uninstall :
34
40
rm -f $(PREFIX ) /bin/notes
0 commit comments