vigiboard / Makefile @ f913c9d3
History | View | Annotate | Download (1011 Bytes)
1 |
NAME := vigiboard |
---|---|
2 |
all: build |
3 |
|
4 |
install: install_files install_permissions |
5 |
|
6 |
install_files: |
7 |
$(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES |
8 |
mkdir -p $(DESTDIR)$(HTTPD_DIR) |
9 |
ln -f -s $(SYSCONFDIR)/vigilo/$(NAME)/$(NAME).conf $(DESTDIR)$(HTTPD_DIR)/ |
10 |
echo $(HTTPD_DIR)/$(NAME).conf >> INSTALLED_FILES |
11 |
mkdir -p $(DESTDIR)/var/log/vigilo/$(NAME) |
12 |
# Déplacement du app_cfg.py |
13 |
mv $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/ |
14 |
ln -s $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` |
15 |
echo $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py >> INSTALLED_FILES |
16 |
mkdir -p $(DESTDIR)/var/cache/vigilo/sessions |
17 |
|
18 |
install_permissions: |
19 |
chmod 750 $(DESTDIR)/var/cache/vigilo/sessions |
20 |
chown apache: $(DESTDIR)/var/cache/vigilo/sessions |
21 |
|
22 |
include buildenv/Makefile.common |
23 |
|
24 |
MODULE := $(NAME) |
25 |
CODEPATH := $(NAME) |
26 |
|
27 |
lint: lint_pylint |
28 |
tests: tests_nose |
29 |
clean: clean_python |