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