Correct paths in moxerverctl and adapt Makefiles
This commit is contained in:
parent
ee5aaa2690
commit
ce8971eb2b
4 changed files with 16 additions and 23 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue