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