Correct paths in moxerverctl and adapt Makefiles

This commit is contained in:
Igor Socec 2017-01-25 10:59:49 +01:00
parent ee5aaa2690
commit ce8971eb2b
4 changed files with 16 additions and 23 deletions

View file

@ -4,9 +4,9 @@ TARGET_BINARY = moxerver
# ==============================================================================
# directory for build results
BUILDDIR = build.dir
BUILDDIR = $(abspath build.dir)
# installation root
INSTALLDIR = install.dir
INSTALLDIR = $(abspath install.dir)
# prefix for /bin directory
BIN_PREFIX = /usr
@ -57,8 +57,7 @@ default: $(BUILDDIR)/$(TARGET_BINARY)
# install target binary
install: default
mkdir -p $(INSTALLDIR)/$(BIN_PREFIX)/bin
cp $(BUILDDIR)/$(TARGET_BINARY) $(INSTALLDIR)/$(BIN_PREFIX)/bin
install -Dm0755 $(BUILDDIR)/$(TARGET_BINARY) $(INSTALLDIR)/$(BIN_PREFIX)/bin/$(TARGET_BINARY)
# clean removes object files and target (ignore errors with "-" before commands)
clean: