vigiboard / Makefile @ 8d78db03
History | View | Annotate | Download (1.65 KB)
1 | d7540235 | Aurelien BOMPARD | NAME := vigiboard |
---|---|---|---|
2 | 536ea51c | Aurelien BOMPARD | all: build |
3 | |||
4 | 70209762 | Aurelien BOMPARD | include buildenv/Makefile.common |
5 | MODULE := $(NAME) |
||
6 | CODEPATH := $(NAME) |
||
7 | 6eaeb5a7 | Aurelien BOMPARD | EPYDOC_PARSE := vigiboard\.(widgets|controllers) |
8 | 70209762 | Aurelien BOMPARD | |
9 | 809955f3 | Aurelien BOMPARD | install: build install_python install_data |
10 | install_pkg: build install_python_pkg install_data |
||
11 | b8e1cd40 | Aurelien BOMPARD | |
12 | 8a4a20e4 | Aurelien BOMPARD | install_python: $(PYTHON) |
13 | db58b89e | Aurelien BOMPARD | $(PYTHON) setup.py install --record=INSTALLED_FILES |
14 | 8a4a20e4 | Aurelien BOMPARD | install_python_pkg: $(PYTHON) |
15 | a43ec272 | Aurelien BOMPARD | $(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES |
16 | b8e1cd40 | Aurelien BOMPARD | |
17 | e88149e8 | Aurelien BOMPARD | install_data: deployment/logrotate.conf |
18 | 64ef5a71 | Aurelien BOMPARD | # Permissions de la conf |
19 | chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME) |
||
20 | acb0dfad | Aurelien BOMPARD | [ `id -u` -ne 0 ] || chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
21 | 64ef5a71 | Aurelien BOMPARD | chmod 640 $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
22 | fd3d2299 | Aurelien BOMPARD | # Apache |
23 | a43ec272 | Aurelien BOMPARD | mkdir -p $(DESTDIR)$(HTTPD_DIR) |
24 | 88f37dd7 | Aurelien BOMPARD | ln -f -s $(SYSCONFDIR)/vigilo/$(NAME)/$(NAME).conf $(DESTDIR)$(HTTPD_DIR)/ |
25 | echo $(HTTPD_DIR)/$(NAME).conf >> INSTALLED_FILES |
||
26 | 64ef5a71 | Aurelien BOMPARD | mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/log/vigilo/$(NAME) |
27 | 0bcaefe4 | Aurelien BOMPARD | install -m 644 -p -D deployment/logrotate.conf $(DESTDIR)/etc/logrotate.d/$(NAME) |
28 | 88f37dd7 | Aurelien BOMPARD | # Déplacement du app_cfg.py |
29 | mv $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/ |
||
30 | ln -s $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` |
||
31 | echo $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py >> INSTALLED_FILES |
||
32 | 64ef5a71 | Aurelien BOMPARD | # Cache |
33 | mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
34 | chmod 750 $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
35 | 119ddf4c | Aurelien BOMPARD | [ `id -u` -ne 0 ] || chown $(HTTPD_USER): $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
36 | f913c9d3 | Thomas BURGUIERE | |
37 | a43ec272 | Aurelien BOMPARD | |
38 | 858d88aa | Francois POIROTTE | |
39 | d7540235 | Aurelien BOMPARD | lint: lint_pylint |
40 | c6e2f817 | Aurelien BOMPARD | tests: tests_nose |
41 | 536ea51c | Aurelien BOMPARD | clean: clean_python |
42 | b8e1cd40 | Aurelien BOMPARD | |
43 | .PHONY: install_pkg install_python install_python_pkg install_data |