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