summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f8413950730352b7b070c245ccd3c1d77de39a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
all: mod_aq_annonces.zip com_auquotidien.zip com_liberty.zip mod_status_liberty.zip plugin_liberty.zip user_liberty.zip template_khepri_liberty.zip

mod_aq_annonces.zip: mod_aq_annonces
	zip -r mod_aq_annonces.zip mod_aq_annonces/

com_auquotidien.zip: com_auquotidien
	zip -r com_auquotidien.zip com_auquotidien/

com_liberty.zip: joomla_com_liberty
	zip -r com_liberty.zip joomla_com_liberty/

mod_status_liberty.zip: joomla_mod_status_liberty
	zip -r mod_status_liberty.zip joomla_mod_status_liberty/

plugin_liberty.zip: plugin_liberty
	zip -r plugin_liberty.zip plugin_liberty/

user_liberty.zip: user_liberty
	zip -r user_liberty.zip user_liberty/

template_khepri_liberty.zip: joomla_template_khepri_liberty
	zip -r template_khepri_liberty.zip joomla_template_khepri_liberty/

#install:
#	@if [ "x$(DESTDIR)" == "x" ]; then echo Do make install DESTDIR=[joomla path]; exit 1; fi
#	rm -rf $(DESTDIR)/administrator/modules/mod_login
#	ln -sf `pwd`/mod_login $(DESTDIR)/administrator/modules/mod_login

redirect:	
	@if [ "x$(DESTDIR)" == "x" ]; then echo Do make install DESTDIR=[joomla path]; exit 1; fi
	rm -rf $(DESTDIR)/plugins/authentication/liberty.*
	ln -sf `pwd`/plugin_liberty/liberty.xml $(DESTDIR)/plugins/authentication/
	ln -sf `pwd`/plugin_liberty/liberty.php $(DESTDIR)/plugins/authentication/
	rm -rf $(DESTDIR)/plugins/user/liberty.*
	ln -sf `pwd`/user_liberty/liberty.xml $(DESTDIR)/plugins/user/
	ln -sf `pwd`/user_liberty/liberty.php $(DESTDIR)/plugins/user/
	rm -rf $(DESTDIR)/administrator/modules/mod_status_liberty/
	ln -sf `pwd`/joomla_mod_status_liberty/ $(DESTDIR)/administrator/modules/mod_status_liberty
	rm -rf $(DESTDIR)/administrator/templates/khepri_liberty
	ln -sf `pwd`/joomla_template_khepri_liberty/ $(DESTDIR)/administrator/templates/khepri_liberty