Changed MANDIR

This commit is contained in:
Bob Polis 2022-06-18 15:52:07 +02:00
parent 1bc1d939e4
commit 152d83c863

View File

@ -2,7 +2,7 @@ include premake.make
BIN := $(shell basename $$(pwd)) BIN := $(shell basename $$(pwd))
MANSECTION := 1 MANSECTION ?= 1
MANPAGE := $(BIN).$(MANSECTION) MANPAGE := $(BIN).$(MANSECTION)
SRCS := $(notdir $(wildcard src/*.cpp)) SRCS := $(notdir $(wildcard src/*.cpp))
@ -12,9 +12,9 @@ DEPS := $(SRCS:.cpp=.d)
BUILDDIR := build/intermediates/ BUILDDIR := build/intermediates/
PREFIX ?= /usr/local PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/man/man
CONFIGDIR ?= $(PREFIX)/etc CONFIGDIR ?= $(PREFIX)/etc
DATADIR ?= $(PREFIX)/share DATADIR ?= $(PREFIX)/share
MANDIR ?= $(DATADIR)/man/man
DOCDIR ?= $(DATADIR)/$(BIN)/doc DOCDIR ?= $(DATADIR)/$(BIN)/doc
CXX ?= g++ CXX ?= g++
@ -43,7 +43,7 @@ prebuild:
@mkdir -p $(BUILDDIR) $(OUTDIR) @mkdir -p $(BUILDDIR) $(OUTDIR)
$(OUTDIR)$(BIN): $(OBJS) $(DEPS) $(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) @ln -sf $(OUTDIR)$(BIN) $(BIN)
%.o: %.cpp %.d %.o: %.cpp %.d
@ -65,7 +65,7 @@ dist-clean:
$(RM) build $(BIN) $(RM) build $(BIN)
$(MAKE) -C tests clean $(MAKE) -C tests clean
install: $(OUTDIR)$(BIN) install:
$(INSTALL) -d $(BINDIR) $(INSTALL) -d $(BINDIR)
$(INSTALL) $(OUTDIR)$(BIN) $(BINDIR) $(INSTALL) $(OUTDIR)$(BIN) $(BINDIR)
$(INSTALL) -d $(MANDIR)$(MANSECTION) $(INSTALL) -d $(MANDIR)$(MANSECTION)