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