about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rw-r--r--Makefile23
2 files changed, 24 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 62e16ab..d0b849a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
+config.mk
 notemap
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f4b27a4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+PREFIX = /usr/local
+MANDIR = ${PREFIX}/share/man
+LIBRESSL_PREFIX = /usr/local
+
+CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
+CFLAGS += ${LIBRESSL_PREFIX:%=-I%/include}
+LDFLAGS += ${LIBRESSL_PREFIX:%=-L%/lib}
+LDLIBS = -ltls
+
+-include config.mk
+
+notemap:
+
+clean:
+	rm -f notemap
+
+install: notemap notemap.1
+	install -d ${PREFIX}/bin ${MANDIR}/man1
+	install notemap ${PREFIX}/bin
+	gzip -c notemap.1 > ${MANDIR}/man1/notemap.1.gz
+
+uninstall:
+	rm -f ${PREFIX}/bin/notemap ${MANDIR}/man1/notemap.1.gz
ght'> 2017-12-06Day 6June McEnroe 2017-12-05Day 5, part 2June McEnroe 2017-12-05Day 5June McEnroe 2017-12-04Day 4, part 2June McEnroe That ugly sort map though. 2017-12-04Day 4June McEnroe 2017-12-03Day 3, part 2June McEnroe I am super surprised that worked on the first try. 2017-12-03Day 3, clean upJune McEnroe 2017-12-03Day 3June McEnroe This is fucking awful and I'm angry. 2017-12-02Day 2, part 2June McEnroe 2017-12-02Day 2June McEnroe 2017-12-01Day 1, part 2June McEnroe 2017-12-01Day 1June McEnroe 2017-11-27Move to 2016 directoryJune McEnroe