Project

General

Profile

Revision b8e1cd40

IDb8e1cd405bd0ea5aa260e9547fe7c0df3961433d
Parent adb0e63f
Child db58b89e

Added by Aurelien BOMPARD about 13 years ago

uniformisation des makefiles pour faciliter l'install depuis les sources

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@6677 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

Makefile
6 6
CODEPATH := $(NAME)
7 7
EPYDOC_PARSE := vigiboard\.(widgets|controllers)
8 8

  
9
install: $(PYTHON)
9
install: install_python install_data
10
install_pkg: install_python_pkg install_data
11

  
12
install_python: settings.ini $(PYTHON)
13
	$(PYTHON) setup.py install --root=$(DESTDIR) --record=INSTALLED_FILES
14
install_python_pkg: settings.ini $(PYTHON)
10 15
	$(PYTHON) setup.py install --single-version-externally-managed --root=$(DESTDIR) --record=INSTALLED_FILES
11
	chmod a+rX -R $(DESTDIR)$(PREFIX)/lib*/python*/*
16

  
17
install_data: deployment/logrotate.con
12 18
	# Permissions de la conf
13 19
	chmod a+rX -R $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)
14 20
	[ `id -u` -ne 0 ] || chgrp $(HTTPD_USER) $(DESTDIR)$(SYSCONFDIR)/vigilo/$(NAME)/*.ini
......
33 39
lint: lint_pylint
34 40
tests: tests_nose
35 41
clean: clean_python
42

  
43
.PHONY: install_pkg install_python install_python_pkg install_data

Also available in: Unified diff