summary refs log tree commit diff
diff options
context:
space:
mode:
-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
400'>2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe Allows restarting consumers safely. 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe Oops, didn't see this. 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe