summary refs log tree commit diff
path: root/www/git.causal.agency/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--www/git.causal.agency/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/www/git.causal.agency/Makefile b/www/git.causal.agency/Makefile
index 76c93d3a..f05d4a4a 100644
--- a/www/git.causal.agency/Makefile
+++ b/www/git.causal.agency/Makefile
@@ -3,46 +3,44 @@ CONFDIR = ${PREFIX}/conf
 DATADIR = ${PREFIX}/cgit
 BINDIR = ${PREFIX}/bin
 
+CFLAGS += -Wall -Wextra
+LDFLAGS = -static -pie
+
 BINS += about-filter
-BINS += cat
-BINS += compress
 BINS += ctags
 BINS += email-filter
 BINS += gzip
 BINS += hilex
 BINS += htagml
 BINS += mandoc
-BINS += mktemp
 BINS += mtags
 BINS += owner-filter
-BINS += rm
-BINS += sh
 BINS += source-filter
 
 all: ${BINS}
 
-cat rm sh:
-	cp /bin/$@ $@
-
-compress ctags mandoc mktemp:
-	${MAKE} -C /usr/src/usr.bin/$@ LDFLAGS='-static -pie'
+compress ctags mandoc:
+	${MAKE} -C /usr/src/usr.bin/$@ LDFLAGS='${LDFLAGS}'
 	mv /usr/src/usr.bin/$@/$@ $@
 	${MAKE} -C /usr/src/usr.bin/$@ clean
 
 gzip: compress
-	cp compress $@
+	ln -f compress $@
 
 hilex htagml mtags:
 	rm -f ../../bin/$@
-	${MAKE} -C ../../bin $@ LDFLAGS='-static -pie'
+	${MAKE} -C ../../bin $@ LDFLAGS='${LDFLAGS}'
 	mv ../../bin/$@ $@
 
+about-filter email-filter owner-filter source-filter: filter
+	ln -f filter $@
+
 install: cgitrc custom.css ${BINS}
 	install -m 644 cgitrc ${CONFDIR}
 	install -m 644 custom.css ${DATADIR}
 	install -d -o www -g daemon ${PREFIX}/cache/cgit
 	install -d -m 1700 -o www -g daemon ${PREFIX}/tmp
-	install ${BINS} ${BINDIR}
+	install -s ${BINS} ${BINDIR}
 
 clean:
-	rm -f ${BINS}
+	rm -f compress filter ${BINS}
e 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe 2019-09-08Set title User-AgentJune McEnroe 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 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