Change names of config file and control script
Also make top Makefile more tidy.
This commit is contained in:
parent
a1162d1674
commit
83bd22bef9
6 changed files with 22 additions and 20 deletions
33
tools/Makefile
Normal file
33
tools/Makefile
Normal file
|
@ -0,0 +1,33 @@
|
|||
# target names
|
||||
TARGET_CONTROL = moxerverctl
|
||||
TARGET_CONFIG = moxerver.cfg
|
||||
|
||||
# ==============================================================================
|
||||
|
||||
# directory for build results
|
||||
BUILDDIR = build.dir
|
||||
# installation root
|
||||
INSTALLDIR = install.dir
|
||||
# prefix for /bin directory
|
||||
BIN_PREFIX = /usr
|
||||
|
||||
# ==============================================================================
|
||||
|
||||
# supported make options (clean, install...)
|
||||
.PHONY: default install clean
|
||||
|
||||
# default does nothing
|
||||
default:
|
||||
|
||||
# install targets
|
||||
install:
|
||||
# install control script
|
||||
mkdir -p $(INSTALLDIR)/$(BIN_PREFIX)/bin
|
||||
cp $(TARGET_CONTROL) $(INSTALLDIR)/$(BIN_PREFIX)/bin/
|
||||
# install configuration file
|
||||
mkdir -p $(INSTALLDIR)/etc
|
||||
cp $(TARGET_CONFIG) $(INSTALLDIR)/etc/
|
||||
|
||||
# clean removes object files and target (ignore errors with "-" before commands)
|
||||
clean:
|
||||
-rm -rf $(INSTALLDIR)
|
Loading…
Add table
Add a link
Reference in a new issue