diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..66e6c52 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,25 @@ | |||
1 | # Radio | ||
2 | |||
3 | DESTDIR = | ||
4 | PREFIX = /usr/local | ||
5 | |||
6 | .PHONY: help | ||
7 | help: | ||
8 | @echo "radio : Play online radio" | ||
9 | @echo "(C) 2022 Case Duckworth <acdw@acdw.net>" | ||
10 | @echo "Licensed under the Fair License; see COPYING for details." | ||
11 | @echo | ||
12 | @echo "TARGETS:" | ||
13 | @echo " install Install radio to $(DESTDIR)$(PREFIX)/radio." | ||
14 | @echo " An example configuration is at $(DESTDIR)$(PREFIX)/share/radio/stations." | ||
15 | @echo " uninstall Uninstall radio-related files." | ||
16 | |||
17 | .PHONY: install | ||
18 | install: radio radio.stations | ||
19 | install -D radio $(PREFIX)/bin/radio | ||
20 | install -D radio.stations $(PREFIX)/share/radio/stations | ||
21 | |||
22 | .PHONY: uninstall | ||
23 | uninstall: | ||
24 | rm $(PREFIX)/bin/radio | ||
25 | rm -r $(PREFIX)/share/radio/ | ||