-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (28 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all:
echo All scripts, no build. Run 'make install' to install into Raspbian
install:
-mkdir -p /var/lib/RasPiCam
-chown www-data:www-data /var/lib/RasPiCam
-mkdir -p /usr/lib/cgi-bin
-chown www-data:www-data /usr/lib/cgi-bin
install -o www-data -g www-data -m 775 cgi/measurements_raw.cgi /usr/lib/cgi-bin/measurements_raw.cgi
install -o www-data -g www-data -m 775 cgi/measurements.cgi /usr/lib/cgi-bin/measurements.cgi
install -o www-data -g www-data -m 775 cgi/image.cgi /usr/lib/cgi-bin/image.cgi
install -o www-data -g www-data -m 775 cgi/dashboard.cgi /usr/lib/cgi-bin/dashboard.cgi
install -o root -g root -m 644 cron/RasPiCam.cron /etc/cron.d/RasPiCam
install -o root -g root -m 644 cron/RasPiCam_dht11_hack.cron /etc/cron.d/RasPiCam_dht11_hack
-mkdir -p /usr/lib/RasPiCam
-chown root:root /usr/lib/RasPiCam
install -o root -g root -m 775 lib/RasPiCamReader.sh /usr/lib/RasPiCam/RasPiCamReader.sh
install -o root -g root -m 775 lib/RasPiCam_dht11_hack.sh /usr/lib/RasPiCam_dht11_hack.sh
if [ ! -e /etc/apache2/conf.d/RasPiCam ]; then \
install config/RasPiCam.conf /etc/apache2/conf.d/RasPiCam; \
fi
if [ -e /usr/lib/Adafruit-Raspberry-Pi-Python-Code ]; then \
cd /usr/lib/Adafruit-Raspberry-Pi-Python-Code; \
git pull; \
else \
cd /usr/lib/; \
git clone https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git; \
fi
service cron reload