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
pkg/vigiboard.mandriva.spec
91 91
%setup -q
92 92

  
93 93
%build
94
make PYTHON=%{_bindir}/python SYSCONFDIR=%{_sysconfdir}
95 94

  
96 95
%install
97 96
rm -rf $RPM_BUILD_ROOT
98
make install \
97
make install_pkg \
99 98
	DESTDIR=$RPM_BUILD_ROOT \
100 99
	SYSCONFDIR=%{_sysconfdir} \
101
	PYTHON=%{_bindir}/python
100
	PYTHON=%{__python}
102 101

  
103 102
%find_lang %{name}
104 103

  
pkg/vigiboard.redhat.spec
40 40
sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf
41 41

  
42 42
%build
43
make PYTHON=%{__python} SYSCONFDIR=%{_sysconfdir}
44 43

  
45 44
%install
46 45
rm -rf $RPM_BUILD_ROOT
47
make install \
46
make install_pkg \
48 47
	DESTDIR=$RPM_BUILD_ROOT \
49 48
	SYSCONFDIR=%{_sysconfdir} \
50 49
	PYTHON=%{__python}
pkg/vigiboard.rhel6.spec
34 34
sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf
35 35

  
36 36
%build
37
make PYTHON=%{__python} SYSCONFDIR=%{_sysconfdir}
38 37

  
39 38
%install
40 39
rm -rf $RPM_BUILD_ROOT
41
make install \
40
make install_pkg \
42 41
    DESTDIR=$RPM_BUILD_ROOT \
43 42
    SYSCONFDIR=%{_sysconfdir} \
44 43
    PYTHON=%{__python}

Also available in: Unified diff