pumpkin/Makefile
2020-06-16 12:27:53 +02:00

21 lines
488 B
Makefile

DESTDIR :=
ROOTDIR=/usr/share/pumpkin/
SERVICE_PATH=/etc/systemd/system/
install:
pip install RPi.GPIO
mkdir -p $(DESTDIR)$(ROOTDIR)
mkdir -p $(DESTDIR)$(SERVICE_PATH)
cp __main__.py $(DESTDIR)$(ROOTDIR)
cp rgb.py $(DESTDIR)$(ROOTDIR)
cp waveloader.py $(DESTDIR)$(ROOTDIR)
cp config.py $(DESTDIR)$(ROOTDIR)
cp pumpkin.py $(DESTDIR)$(ROOTDIR)
cp pumpkin.service $(DESTDIR)$(SERVICE_PATH)
systemctl daemon-reload
uninstall:
rm $(SERVICE_PATH)pumpkin.service
rm -R $(ROOTDIR)