diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-13 14:40:00 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-13 14:40:00 +0000 |
| commit | 8fc9c88304fde65d6c3a619c3aee7e6e00540695 (patch) | |
| tree | 0e370a3c0a6610028234f1f0da22c1c4ac732699 /Makefile | |
| parent | edb3d8013e62dbdc1f093a8781f1833e11dfbdda (diff) | |
Added a few fixes to #34
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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: |
