moxanix/tools/Makefile
Igor Socec 83bd22bef9 Change names of config file and control script
Also make top Makefile more tidy.
2017-01-25 01:33:37 +01:00

33 lines
850 B
Makefile

# 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)