about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-21 17:57:54 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-21 17:57:54 +0200
commitb5803897df7792d3137e8050ef3c3fb96288d24a (patch)
tree6ea0a895545c5473f8b9e878ecce7ea9891f3893 /Makefile
downloadholes-b5803897df7792d3137e8050ef3c3fb96288d24a.tar.gz
holes-b5803897df7792d3137e8050ef3c3fb96288d24a.tar.xz
holes-b5803897df7792d3137e8050ef3c3fb96288d24a.zip
initial commit of holes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7807575
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+ALL=holes
+
+CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings
+
+DESTDIR=
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
+
+all: $(ALL)
+
+README: holes.1
+	mandoc -Tutf8 $< | col -bx >$@
+
+clean: FRC
+	rm -f $(ALL)
+
+install: FRC all
+	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+	install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
+	install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1
+
+FRC: