vigiboard / Makefile @ 5eed2125
History | View | Annotate | Download (1.32 KB)
1 |
NAME := vigiboard |
---|---|
2 |
all: build |
3 |
|
4 |
include buildenv/Makefile.common |
5 |
PKGNAME := $(NAME) |
6 |
MODULE := $(NAME) |
7 |
CODEPATH := $(NAME) |
8 |
EPYDOC_PARSE := vigiboard\.(widgets|controllers) |
9 |
|
10 |
install: |
11 |
$(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES |
12 |
chmod a+rX -R $(DESTDIR)$(PREFIX)/lib*/python*/* |
13 |
# Permissions de la conf |
14 |
chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME) |
15 |
[ `id -u` -eq 0 ] && chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
16 |
chmod 640 $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
17 |
# Apache |
18 |
mkdir -p $(DESTDIR)$(HTTPD_DIR) |
19 |
ln -f -s $(SYSCONFDIR)/vigilo/$(NAME)/$(NAME).conf $(DESTDIR)$(HTTPD_DIR)/ |
20 |
echo $(HTTPD_DIR)/$(NAME).conf >> INSTALLED_FILES |
21 |
mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/log/vigilo/$(NAME) |
22 |
# Déplacement du app_cfg.py |
23 |
mv $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/ |
24 |
ln -s $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` |
25 |
echo $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py >> INSTALLED_FILES |
26 |
# Cache |
27 |
mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
28 |
chmod 750 $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
29 |
chown $(HTTPD_USER): $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
30 |
|
31 |
|
32 |
|
33 |
lint: lint_pylint |
34 |
tests: tests_nose |
35 |
clean: clean_python |