vigigraph / Makefile @ ec042411
History | View | Annotate | Download (1.32 KB)
1 |
NAME := vigigraph |
---|---|
2 |
|
3 |
all: qooxdoo build |
4 |
|
5 |
include buildenv/Makefile.common |
6 |
PKGNAME := $(NAME) |
7 |
MODULE := $(NAME) |
8 |
CODEPATH := $(NAME) |
9 |
EPYDOC_PARSE := vigigraph\.controllers |
10 |
|
11 |
qooxdoo: vigigraph/public/js/vigigraph.js |
12 |
vigigraph/public/js/vigigraph.js: javascript/source/class/vigigraph/Application.js |
13 |
make -C javascript build |
14 |
cp -f javascript/build/script/vigigraph.js vigigraph/public/js |
15 |
cp -rf javascript/build/resource vigigraph/public/ |
16 |
|
17 |
clean_qooxdoo: |
18 |
$(RM) vigigraph/public/js/vigigraph.js |
19 |
$(RM) -r vigigraph/public/resource |
20 |
$(RM) -r javascript/build/ |
21 |
|
22 |
install: vigigraph/public/js/vigigraph.js |
23 |
$(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES |
24 |
chmod a+rX -R $(DESTDIR)$(PREFIX)/lib*/python*/* |
25 |
# Apache |
26 |
mkdir -p $(DESTDIR)$(HTTPD_DIR) |
27 |
ln -f -s $(SYSCONFDIR)/vigilo/$(NAME)/$(NAME).conf $(DESTDIR)$(HTTPD_DIR)/ |
28 |
echo $(HTTPD_DIR)/$(NAME).conf >> INSTALLED_FILES |
29 |
mkdir -p $(DESTDIR)/var/log/vigilo/$(NAME) |
30 |
# Déplacement du app_cfg.py |
31 |
mv $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/ |
32 |
ln -s $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py $(DESTDIR)`grep '$(NAME)/config/app_cfg.py$$' INSTALLED_FILES` |
33 |
echo $(SYSCONFDIR)/vigilo/$(NAME)/app_cfg.py >> INSTALLED_FILES |
34 |
|
35 |
lint: lint_pylint |
36 |
tests: tests_nose |
37 |
clean: clean_python clean_qooxdoo |