19 lines
593 B
Makefile
Executable File
19 lines
593 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
BUILD_DIR := 'debian/mandaye-cam'
|
|
|
|
%:
|
|
dh $@ --with python2
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
for ver in $(shell pyversions -vr); do \
|
|
ln -s /etc/mandaye-cam/local_config.py $(BUILD_DIR)/usr/lib/python$$ver/dist-packages/cam/; \
|
|
done
|
|
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam
|
|
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam/data
|
|
install -d -m 0755 $(BUILD_DIR)/var/run/mandaye-cam
|
|
install -d -m 0755 $(BUILD_DIR)/var/log/mandaye-cam
|
|
install -d -m 0755 $(BUILD_DIR)/usr/share/mandaye-cam
|
|
cp -R cam/static $(BUILD_DIR)/usr/share/mandaye-cam
|