summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorZuhaitz <zuhaitz.zechhub@gmail.com>2026-01-13 14:52:58 +0000
committerGitHub <noreply@github.com>2026-01-13 14:52:58 +0000
commit606db9c49b4f6f6514cbce92a11fb0b6a47fc122 (patch)
tree4b86f4ad20a66b0e984feb4d5a2abaf6eaa1227f /Makefile
parent856267f36e60211ba537d63a80c5d36aa4436a4f (diff)
parent7eb91d69beb19da7a7cb7ac84625f701890ce6eb (diff)
Merge pull request #36 from z-libs/pr-34-testing
Added a few fixes to #34
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0b62685..f0aec07 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,7 @@ OBJS = $(patsubst %.c, $(OBJ_DIR)/%.o, $(SRCS))
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
+SHAREDIR = $(PREFIX)/share/zenc
# Default target
all: $(TARGET)
@@ -64,13 +65,19 @@ install: $(TARGET)
install -d $(MANDIR)
# Install man page if it exists
test -f man/zc.1 && install -m 644 man/zc.1 $(MANDIR)/zc.1 || true
+ # Install standard library
+ install -d $(SHAREDIR)
+ cp -r std $(SHAREDIR)/
@echo "=> Installed to $(BINDIR)/$(TARGET)"
+ @echo "=> Standard library installed to $(SHAREDIR)/std"
# Uninstall
uninstall:
rm -f $(BINDIR)/$(TARGET)
rm -f $(MANDIR)/zc.1
+ rm -rf $(SHAREDIR)
@echo "=> Uninstalled from $(BINDIR)/$(TARGET)"
+ @echo "=> Removed $(SHAREDIR)"
# Clean
clean: