28 lines
627 B
Makefile
28 lines
627 B
Makefile
# wrapper around cmake, see CMakeLists.txt for compile options
|
|
.PHONY: configure build clean nuke install install_service
|
|
|
|
BUILD_DIR ?= build
|
|
|
|
configure:
|
|
cmake -S . -B ${BUILD_DIR}
|
|
|
|
build:
|
|
cmake --build ${BUILD_DIR} -j
|
|
|
|
clean:
|
|
cmake --build $(BUILD_DIR) --target clean
|
|
|
|
nuke: clean
|
|
rm -rf $(BUILD_DIR)
|
|
|
|
install:
|
|
mkdir -p ${HOME}/.local/bin
|
|
install ${BUILD_DIR}/linuxSmartie ${HOME}/.local/bin
|
|
|
|
install_service:
|
|
mkdir -p ~/.config/systemd/user
|
|
cp linuxSmartie.service ~/.config/systemd/user/linuxSmartie.service
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable linuxSmartie
|
|
systemctl --user start linuxSmartie
|