From 152d83c863f50b563e9987430fe9d04f669adc63 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sat, 18 Jun 2022 15:52:07 +0200 Subject: [PATCH] Changed MANDIR --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3d38a94..faa879f 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ include premake.make BIN := $(shell basename $$(pwd)) -MANSECTION := 1 +MANSECTION ?= 1 MANPAGE := $(BIN).$(MANSECTION) SRCS := $(notdir $(wildcard src/*.cpp)) @@ -12,9 +12,9 @@ DEPS := $(SRCS:.cpp=.d) BUILDDIR := build/intermediates/ PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin +MANDIR ?= $(PREFIX)/man/man CONFIGDIR ?= $(PREFIX)/etc DATADIR ?= $(PREFIX)/share -MANDIR ?= $(DATADIR)/man/man DOCDIR ?= $(DATADIR)/$(BIN)/doc CXX ?= g++ @@ -43,7 +43,7 @@ prebuild: @mkdir -p $(BUILDDIR) $(OUTDIR) $(OUTDIR)$(BIN): $(OBJS) $(DEPS) - $(CXX) $(addprefix $(BUILDDIR),$(OBJS)) $(LDFLAGS) $(LDLIBS) -o $(OUTDIR)$(BIN) + $(CXX) -o $(OUTDIR)$(BIN) $(LDFLAGS) $(LDLIBS) $(addprefix $(BUILDDIR),$(OBJS)) @ln -sf $(OUTDIR)$(BIN) $(BIN) %.o: %.cpp %.d @@ -65,7 +65,7 @@ dist-clean: $(RM) build $(BIN) $(MAKE) -C tests clean -install: $(OUTDIR)$(BIN) +install: $(INSTALL) -d $(BINDIR) $(INSTALL) $(OUTDIR)$(BIN) $(BINDIR) $(INSTALL) -d $(MANDIR)$(MANSECTION)