summary refs log tree commit diff stats
path: root/Makefile
blob: bea747edcc58d6f57693d78428bf00b45d8a54cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Radio

DESTDIR =
PREFIX = /usr/local

.PHONY: help
help:
	@echo "radio : Play online radio"
	@echo "(C) 2022 Case Duckworth <acdw@acdw.net>"
	@echo "Licensed under the Fair License; see COPYING for details."
	@echo
	@echo "TARGETS:"
	@echo " install	Install radio to $(DESTDIR)$(PREFIX)/bin/radio."
	@echo "		An example configuration is at $(DESTDIR)$(PREFIX)/share/radio/stations."
	@echo " uninstall	Uninstall radio-related files."

.PHONY: install
install: radio radio.stations
	install -D radio $(DESTDIR)$(PREFIX)/bin/radio
	install -D radio.stations $(DESTDIR)$(PREFIX)/share/radio/stations

.PHONY: uninstall
uninstall:
	rm $(DESTDIR)$(PREFIX)/bin/radio
	rm -r $(DESTDIR)$(PREFIX)/share/radio/