vigigraph / Makefile @ a6e538ca
History | View | Annotate | Download (1.43 KB)
1 | 0931fc44 | Thomas BURGUIERE | NAME := vigigraph |
---|---|---|---|
2 | ad650007 | Aurelien BOMPARD | QOOXDOO_VER := 0.7.3 |
3 | 2f5d4f00 | Aurelien BOMPARD | |
4 | 7c9baa43 | Francois POIROTTE | all: build |
5 | 2f5d4f00 | Aurelien BOMPARD | |
6 | b444f1f7 | Aurelien BOMPARD | include buildenv/Makefile.common |
7 | PKGNAME := $(NAME) |
||
8 | MODULE := $(NAME) |
||
9 | CODEPATH := $(NAME) |
||
10 | 1f21c892 | Aurelien BOMPARD | EPYDOC_PARSE := vigigraph\.controllers |
11 | b444f1f7 | Aurelien BOMPARD | |
12 | c61b04c0 | Francois POIROTTE | install: $(PYTHON) |
13 | 0f317fa6 | Aurelien BOMPARD | $(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES |
14 | 97b58008 | Aurelien BOMPARD | chmod a+rX -R $(DESTDIR)$(PREFIX)/lib*/python*/* |
15 | 53bdf40e | Aurelien BOMPARD | # Permissions de la conf |
16 | chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME) |
||
17 | 9cd0325e | Aurelien BOMPARD | [ `id -u` -ne 0 ] || chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
18 | 53bdf40e | Aurelien BOMPARD | chmod 600 $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
19 | 97b58008 | Aurelien BOMPARD | # Apache |
20 | 0f317fa6 | Aurelien BOMPARD | 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 | 5f5c1fd6 | Aurelien BOMPARD | mkdir -p $(DESTDIR)/var/log/vigilo/$(NAME) |
24 | 8fa23285 | Aurelien BOMPARD | install -m 644 -p -D deployment/logrotate.conf $(DESTDIR)/etc/logrotate.d/$(NAME) |
25 | db10526c | Aurelien BOMPARD | # Déplacement du app_cfg.py |
26 | mv $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/ |
||
27 | ln -s $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` |
||
28 | echo $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py >> INSTALLED_FILES |
||
29 | bb3d9eb7 | Aurelien BOMPARD | # Cache |
30 | mkdir -p $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
31 | chmod 750 $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
32 | [ `id -u` -ne 0 ] || chown $(HTTPD_USER): $(DESTDIR)$(LOCALSTATEDIR)/cache/vigilo/sessions |
||
33 | 0f317fa6 | Aurelien BOMPARD | |
34 | 0931fc44 | Thomas BURGUIERE | lint: lint_pylint |
35 | 4c964d96 | Aurelien BOMPARD | tests: tests_nose |
36 | 7c9baa43 | Francois POIROTTE | clean: clean_python |