aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-09 23:44:52 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-09 23:44:52 -0500
commitb639f01294f8c528ad0597a179f7e426bccdfb80 (patch)
treeee312fb40488ff5bcaf43ded30b4eae21655630a /Makefile
parentb83221f422721410d365a9e35b88810d6daae744 (diff)
Removing some dead code
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4d3d3617..671e17b3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
PREFIX=/usr/local
-VERSION=0.12.1
+VERSION=0.0.1
CCONFIG=-std=c11 -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -fPIC -I. \
-fsanitize=signed-integer-overflow -fno-sanitize-recover -fvisibility=hidden -fdollars-in-identifiers
LTO=-flto=auto -fno-fat-lto-objects -Wl,-flto
@@ -49,4 +49,14 @@ clean:
%.1: %.1.md
pandoc --lua-filter=.pandoc/bold-code.lua -s $< -t man -o $@
+install: tomo libtomo.so
+ mkdir -p -m 755 "$(PREFIX)/man/man1" "$(PREFIX)/bin" "$(PREFIX)/lib" "$(PREFIX)/share/tomo/modules"
+ cp -v tomo.h "$(PREFIX)/include/"
+ cp -v libtomo.so "$(PREFIX)/lib/"
+ rm -f "$(PREFIX)/bin/tomo"
+ cp -v tomo "$(PREFIX)/bin/"
+
+uninstall:
+ rm -rvf "$(PREFIX)/bin/tomo" "$(PREFIX)/lib/libtomo.so" "$(PREFIX)/share/tomo"; \
+
.PHONY: all clean install uninstall test tags