Makefile - plumber - Plumber – a modern approach to plumbing
(HTM) git clone git://r-36.net/plumber
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
Makefile (1413B)
---
1 .POSIX:
2 DESTDIR=$(HOME)
3 INSTALL_PATH=$(DESTDIR)$(PREFIX)/bin
4 ALL_BIN_FILES:=$(shell ls bin)
5 ALL_OPENER_FILES:=$(shell ls openers)
6
7 all:
8 @echo "install / uninstall - default is $(INSTALL_PATH)"
9
10 .PHONY: install uninstall
11 install:
12 @echo "Installing to $(INSTALL_PATH)\n"
13 mkdir -p $(INSTALL_PATH)
14 cp bin/plumber $(INSTALL_PATH)
15 cp bin/opener $(INSTALL_PATH)
16 cp -a bin/p $(INSTALL_PATH)
17 cp -a bin/plumb $(INSTALL_PATH)
18 cp -a bin/Þ $(INSTALL_PATH)
19 cp openers/* $(INSTALL_PATH)
20 @echo "\nRemember to add the following to .mkshrc or .bashrc, .xsession or .xinitrc in Xorg, to make permanent:\n"
21 @echo "export XTERM=<your preferred_xterminal xterm?>"
22 @echo "export PLUMB_IMAGE=<your_preferred_image_viewer feh -F --auto-rotate?>"
23 @echo "export PLUMB_MEDIA=<your_preferred_mediaplayer mpv?>"
24 @echo "export PLUMB_GOPHER=<your_preferred_gopher_browser gopher?>"
25 @echo "export PLUMB_TXTGOPHER=<your_preferred_gopher_textbrowser gopher?>"
26 @echo "export PLUMB_PDF=<your_preferred_pdf_viewer xpdf?>"
27 @echo "export PLUMB_FILEMANAGER=<your_preferred_filemanager ranger?>"
28 @echo "export PLUMB_WEB=<your_preferred_webbrowser firefox?>"
29 @echo "export PLUMB_TXTWEB=<your_preferred_text_webbrowser lynx?>"
30 @echo "export PLUMB_FEED=<your_preferred_RSS/Atom_client thunderbird?>\n"
31
32 uninstall:
33 @echo "Uninstalling from $(INSTALL_PATH)\n"
34 cd $(INSTALL_PATH);\
35 rm -f $(ALL_BIN_FILES) $(ALL_OPENER_FILES);\
36 cd -