about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-08-08 21:48:53 +0200
committerLeah Neukirchen <leah@vuxu.org>2023-08-08 21:49:14 +0200
commit454f553834e39d35d311714681d3cebe6922a5e3 (patch)
treec21a8167332082d15e271d4febebcbd46d0b375a /Makefile
downloadlistening-454f553834e39d35d311714681d3cebe6922a5e3.tar.gz
listening-454f553834e39d35d311714681d3cebe6922a5e3.tar.xz
listening-454f553834e39d35d311714681d3cebe6922a5e3.zip
initial commit of listening
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d37460b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+ALL=listening
+
+CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings
+
+DESTDIR=
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
+
+all: $(ALL)
+
+clean: FRC
+	rm -f $(ALL)
+
+check: FRC all
+	prove -v
+
+install: FRC all
+	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(ZSHCOMPDIR)
+	install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
+	install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1
+
+README: listening.1
+	mandoc -Tutf8 $< | col -bx >$@
+
+FRC: