Project

General

Profile

Revision 3ba7282b

ID3ba7282b8f0d6c200183910e0a07307f18ad14a1
Parent 198885a1
Child 852d99cb

Added by Aurelien BOMPARD over 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
1 1
NAME := vigigraph
2
QOOXDOO_VER := 0.7.3
3 2

  
4 3
all: build
5 4

  
......
8 7
CODEPATH := $(NAME)
9 8
EPYDOC_PARSE := vigigraph\.controllers
10 9

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

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

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

  
42
.PHONY: install_pkg install_python install_python_pkg install_data
pkg/vigigraph.mandriva.spec
90 90
%setup -q
91 91

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

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

  
102 101
%find_lang %{name}
103 102

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

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

  
40 39
%install
41 40
rm -rf $RPM_BUILD_ROOT
42
make install \
41
make install_pkg \
43 42
	DESTDIR=$RPM_BUILD_ROOT \
44 43
	SYSCONFDIR=%{_sysconfdir} \
45 44
	PYTHON=%{__python}
pkg/vigigraph.rhel6.spec
29 29
sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf
30 30

  
31 31
%build
32
make PYTHON=%{__python} SYSCONFDIR=%{_sysconfdir}
33 32

  
34 33
%install
35 34
rm -rf $RPM_BUILD_ROOT
36
make install \
35
make install_pkg \
37 36
    DESTDIR=$RPM_BUILD_ROOT \
38 37
    SYSCONFDIR=%{_sysconfdir} \
39 38
    PYTHON=%{__python}

Also available in: Unified diff