summary refs log tree commit diff stats
path: root/Makefile
blob: 66e6c529e66ad7ade5e82c6ecfa139aa4b39dd76 (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)/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 $(PREFIX)/bin/radio
	install -D radio.stations $(PREFIX)/share/radio/stations

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