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