15 lines
376 B
Makefile
15 lines
376 B
Makefile
.ONESHELL:
|
|
SHELL = /usr/bin/bash
|
|
MAKEFLAGS += --no-print-directory
|
|
.SILENT:
|
|
|
|
devinit:
|
|
if [[ ! -e config.py ]]; then
|
|
cp config_example/config.j2 config.py
|
|
chmod 600 config.py
|
|
sed -i "/^MQTT_SERVER.*=.*/c\MQTT_SERVER = \"localhost\"" config.py
|
|
sed -i "/^MQTT_USER.*=.*/c\MQTT_USER = None" config.py
|
|
sed -i "/^MQTT_PASSWORD.*=.*/c\MQTT_PASSWORD = None" config.py
|
|
fi
|
|
|