summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2020-11-16 00:53:44 +0000
committerepoch <epoch@hack.thebackupbox.net>2020-11-16 00:53:44 +0000
commit07f78f990a68eda368d3e195edf34d42a196583e (patch)
tree81df2449e08e55df0e9bc09e86ca6c6d05a66e6c /Makefile
parenta75363e4d77a9f35a9e8fb1515945629aba97d9a (diff)
downloaduritools-07f78f990a68eda368d3e195edf34d42a196583e.tar.gz
uritools-07f78f990a68eda368d3e195edf34d42a196583e.zip
added a shorten program that I use in except for making shortened links on epo.k.vu
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7809a59..3910625 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,10 @@ CFLAGS:=-std=c11 -pedantic -Wall
PREFIX:=/usr/local
CC:=gcc
-all: urimatch uricut urijoin uricmp uriunescape uriescape
+all: urimatch uricut urijoin uricmp uriunescape uriescape shorten
+
+shorten: LDFLAGS=-lcrypto
+shorten: shorten.c
urimatch: urimatch.c uri.h
@@ -37,3 +40,6 @@ install: all
install -t $(PREFIX)/bin copy_start_nevermind.sh
install -t $(PREFIX)/bin choose
install -t $(PREFIX)/bin query_param
+ install -t $(PREFIX)/bin shorten
+ chgrp shorten $(PREFIX)/bin/shorten
+ chmod g+s $(PREFIX)/bin/shorten