Projet

Général

Profil

Télécharger (1,5 ko) Statistiques
| Branche: | Révision:

root / Makefile @ master

1
prefix = /usr
2
config_prefix = /var
3
config_dir = $(config_prefix)/lib/larpe
4

    
5
INSTALL = /usr/bin/install -c
6
PYTHON = /usr/bin/python
7

    
8
LARPE_VERSION = 0.2.9
9

    
10
larpe-reload-apache2: larpe-reload-apache2.c
11

    
12
install: larpe-reload-apache2
13
	rm -rf build
14
	$(MAKE) -C po install
15
	$(PYTHON) setup.py install --root "$(DESTDIR)/" --prefix "$(prefix)" --no-compile
16
	$(INSTALL) -d $(DESTDIR)$(prefix)/sbin/
17
	$(INSTALL) larpectl $(DESTDIR)$(prefix)/sbin/
18
	$(INSTALL) -m 4550 larpe-reload-apache2 $(DESTDIR)$(prefix)/sbin/
19
	$(INSTALL) -d $(DESTDIR)/etc/larpe
20
	$(INSTALL) -m 644 conf/apache2-vhost-larpe-common $(DESTDIR)/etc/larpe
21
	$(INSTALL) -d $(DESTDIR)$(config_dir)
22
	$(INSTALL) -d $(DESTDIR)$(config_dir)/vhosts.d
23
	$(INSTALL) -d $(DESTDIR)$(config_dir)/vhost-locations.d
24
	$(INSTALL) -d $(DESTDIR)$(config_dir)/vhosts.d.disabled
25
	$(INSTALL) -d $(DESTDIR)$(config_dir)/vhost-locations.d.disabled
26

    
27
uninstall:
28
	$(MAKE) -C po uninstall
29
	-rm -f $(DESTDIR)$(prefix)/sbin/larpe-reload-apache2
30
	-rm -f $(DESTDIR)$(prefix)/sbin/larpe-reload-apache2-script
31
	-rm -f $(DESTDIR)$(prefix)/sbin/larpectl
32
	-rm -rf $(DESTDIR)$(prefix)/share/larpe/
33
	@echo
34
	@echo "Depending on your Python version, you will have to remove manually the files in /usr/lib/python(version)/site-packages/larpe/"
35

    
36
clean:
37
	$(MAKE) -C po clean
38
	$(MAKE) -C doc clean
39
	-$(PYTHON) setup.py clean
40
	-rm -f larpe-reload-apache2
41

    
42
dist: clean
43
	tar czf dist/larpe-$(LARPE_VERSION).tar.gz -C .. --transform s/trunk/larpe-$(LARPE_VERSION)/ --exclude-from=exclude_from_dist trunk
44

    
45
.PHONY: clean dist
(4-4/12)