summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-10-27 19:01:58 -0400
committerJune McEnroe <june@causal.agency>2020-10-27 19:01:58 -0400
commit31169e4821d6bd14d35682da6d808ee96cfc0ae8 (patch)
treeeb3cabe1aefa1f10a30b9350b3bb29c5cd9e64b5 /Makefile
parentUse open_memstream rather than fmemopen (diff)
downloadnotemap-31169e4821d6bd14d35682da6d808ee96cfc0ae8.tar.gz
notemap-31169e4821d6bd14d35682da6d808ee96cfc0ae8.zip
Rewrite compat and add configure script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index caaa9ac..5fac27e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,8 @@
-PREFIX = /usr/local
-MANDIR = ${PREFIX}/share/man
-LIBRESSL_PREFIX = /usr/local
+PREFIX ?= /usr/local
+MANDIR ?= ${PREFIX}/share/man
 
 CFLAGS += -std=c11 -Wall -Wextra -Wpedantic
-CFLAGS += ${LIBRESSL_PREFIX:%=-I%/include}
-LDFLAGS += ${LIBRESSL_PREFIX:%=-L%/lib}
-LDLIBS = -lcrypto -ltls
+LDLIBS = -ltls
 
 -include config.mk
 
@@ -15,15 +12,15 @@ OBJS += notemap.o
 notemap: ${OBJS}
 	${CC} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
 
-${OBJS}: compat.h imap.h
+${OBJS}: imap.h
 
 clean:
 	rm -f notemap ${OBJS}
 
 install: notemap notemap.1
-	install -d ${PREFIX}/bin ${MANDIR}/man1
-	install notemap ${PREFIX}/bin
-	gzip -c notemap.1 > ${MANDIR}/man1/notemap.1.gz
+	install -d ${DESTDIR}${PREFIX}/bin ${DESTDIR}${MANDIR}/man1
+	install notemap ${DESTDIR}${PREFIX}/bin
+	install -m 644 notemap.1 ${DESTDIR}${MANDIR}/man1
 
 uninstall:
-	rm -f ${PREFIX}/bin/notemap ${MANDIR}/man1/notemap.1.gz
+	rm -f ${DESTDIR}${PREFIX}/bin/notemap ${DESTDIR}${MANDIR}/man1/notemap.1
-0500'>2021-01-12Avoid matching tag text inside HTML elementsJune McEnroe 2021-01-12Use hilex for up -hJune McEnroe 2021-01-12Use hilex for bin HTMLJune McEnroe 2021-01-12Don't output a pre in hilex by defaultJune McEnroe 2021-01-12Move hilex out of hilex directoryJune McEnroe 2021-01-12Consolidate hilex formatters into hilex.cJune McEnroe 2021-01-12Remove hacky tagging from hilexJune McEnroe God that makes the lexers so much simpler. 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe