File tree 1 file changed +15
-4
lines changed 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
-
2
1
# # make help: Display help text
3
2
help :
4
3
@echo " "
10
9
@echo " "
11
10
12
11
# # make install: install the Unix Notes application
13
- install : docs install_files
12
+ install : manpages install_files
14
13
15
- install_file :
14
+ install_files :
16
15
@echo do the install stuff
16
+ sudo install -o root -g root -m 755 notes /usr/local/bin/notes
17
+ sudo ln -s /usr/local/bin/notes /usr/local/bin/notebook
17
18
18
- docs :
19
+ manpages :
19
20
@echo create the docs files to be installed
21
+ gzip -c docs/notes.1 > tmp/notes.1.gz
22
+ gzip -c docs/notebook.1 > tmp/notebook.1.gz
23
+ sudo install -o root -g root -m 644 tmp/notes.1.gz /usr/share/man/man1
24
+ sudo install -o root -g root -m 644 tmp/notebook.1.gz /usr/share/man/man1
20
25
21
26
clean :
22
27
@echo clean up after build
28
+ -rm tmp/notes.1.gz
29
+ -rm tmp/notebook.1.gz
23
30
24
31
# # make uninstall: uninstall the application
25
32
uninstall :
26
33
@echo uninstall application
34
+ -sudo rm -f /usr/share/man/man1/notes.1.gz
35
+ -sudo rm -f /usr/share/man/man1/notebook.1.gz
36
+ -sudo rm -f /usr/local/bin/notes
37
+ -sudo rm -f /usr/local/bin/notebook
27
38
28
39
# # make reinstall: reinstall the application
29
40
reinstall : uninstall install
You can’t perform that action at this time.
0 commit comments