Revision f299be9c
Uniformisation des fichiers de conf dans les IHM
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@6852 b22e2e97-25c9-44ff-b637-2e5ceca36478
Makefile | ||
---|---|---|
1 | 1 |
NAME := vigiboard |
2 |
|
|
3 |
SUBST_FILES := deployment/logrotate.conf deployment/settings.ini \ |
|
4 |
deployment/vigiboard.conf deployment/vigiboard.wsgi |
|
5 |
|
|
2 | 6 |
all: build |
7 |
build: $(SUBST_FILES) |
|
3 | 8 |
|
4 | 9 |
include buildenv/Makefile.common |
5 | 10 |
MODULE := $(NAME) |
6 | 11 |
CODEPATH := $(NAME) |
7 | 12 |
EPYDOC_PARSE := vigiboard\.(widgets|controllers) |
8 | 13 |
|
14 |
deployment/%: deployment/%.in |
|
15 |
sed -e 's,@SYSCONFDIR@,$(SYSCONFDIR),g' \ |
|
16 |
-e 's,@LOCALSTATEDIR@,$(LOCALSTATEDIR),g' $^ > $@ |
|
17 |
|
|
9 | 18 |
install: build install_python install_data |
10 | 19 |
install_pkg: build install_python_pkg install_data |
11 | 20 |
|
12 |
install_python: $(PYTHON) |
|
21 |
install_python: $(PYTHON) $(SUBST_FILES)
|
|
13 | 22 |
$(PYTHON) setup.py install --record=INSTALLED_FILES |
14 |
install_python_pkg: $(PYTHON) |
|
23 |
install_python_pkg: $(PYTHON) $(SUBST_FILES)
|
|
15 | 24 |
$(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES |
16 | 25 |
|
17 |
install_data: deployment/logrotate.conf
|
|
26 |
install_data: $(SUBST_FILES)
|
|
18 | 27 |
# Permissions de la conf |
19 | 28 |
chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME) |
20 | 29 |
[ `id -u` -ne 0 ] || chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini |
... | ... | |
39 | 48 |
lint: lint_pylint |
40 | 49 |
tests: tests_nose |
41 | 50 |
clean: clean_python |
51 |
rm -f $(SUBST_FILES) |
|
42 | 52 |
|
43 | 53 |
.PHONY: install_pkg install_python install_python_pkg install_data |
Also available in: Unified diff