Skip to content

Commit 9efd1db

Browse files
committed
updated makefile to include installation materials
1 parent 280802e commit 9efd1db

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

makefile

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
## make help: Display help text
32
help:
43
@echo ""
@@ -10,20 +9,32 @@ help:
109
@echo ""
1110

1211
## make install: install the Unix Notes application
13-
install: docs install_files
12+
install: manpages install_files
1413

15-
install_file:
14+
install_files:
1615
@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
1718

18-
docs:
19+
manpages:
1920
@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
2025

2126
clean:
2227
@echo clean up after build
28+
-rm tmp/notes.1.gz
29+
-rm tmp/notebook.1.gz
2330

2431
## make uninstall: uninstall the application
2532
uninstall:
2633
@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
2738

2839
## make reinstall: reinstall the application
2940
reinstall: uninstall install

0 commit comments

Comments
 (0)