Makefile 1.7 KB
Newer Older
1
2
3
BASE=rules_shipping
BASE_ADV=rules_shipping_advanced
PLUGINTYPE=vmshipment
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
4
ZIPBASE=opentools_vm
5
VERSION=5.5
6

7
8
PLUGINFILES=$(BASE).php $(BASE)_base.php $(BASE).script.php $(BASE).xml index.html
PLUGINFILES_ADV=$(BASE_ADV).php $(BASE)_base.php $(BASE_ADV).script.php $(BASE_ADV).xml index.html
9

10
TRANSLATIONS=$(call wildcard,language/en*/*.plg_$(PLUGINTYPE)_$(BASE).*ini) 
11
12
13
TRANSLATIONS_ADV=$(subst $(BASE),$(BASE_ADV),$(TRANSLATIONS))
INDEXFILES=language/index.html $(call wildcard,language/**/index.html) $(call wildcard,elements/*.html)
ELEMENTS=$(call wildcard,elements/*.php) 
14
FIELDS=$(call wildcard,fields/*.php) 
15
16
ZIPFILE=plg_$(ZIPBASE)_$(BASE)_v$(VERSION).zip
ZIPFILE_ADV=plg_$(ZIPBASE)_$(BASE_ADV)_v$(VERSION).zip
17
18
19
20
21
22
23
24
25

ADVANCEDFILES=$(call wildcard,$(BASE)_advanced.*)

all: translations zip

translations: $(TRANSLATIONS)
	@echo $(TRANSLATIONS_ADV)
	@cp language/en-GB/en-GB.plg_vmshipment_rules_shipping.ini language/en-GB/en-GB.plg_vmshipment_rules_shipping_advanced.ini
	@cp language/en-GB/en-GB.plg_vmshipment_rules_shipping.sys.ini language/en-GB/en-GB.plg_vmshipment_rules_shipping_advanced.sys.ini
26
27
# # 	@cp language/de-DE/de-DE.plg_vmshipment_rules_shipping.ini language/de-DE/de-DE.plg_vmshipment_rules_shipping_advanced.ini
# # 	@cp language/de-DE/de-DE.plg_vmshipment_rules_shipping.sys.ini language/de-DE/de-DE.plg_vmshipment_rules_shipping_advanced.sys.ini
28
29
30

zip: $(PLUGINFILES) $(TRANSLATIONS) $(ADVANCEDFILES)
	@echo "Packing all files into distribution file $(ZIPFILE):"
31
32
	@zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(FIELDS) $(INDEXFILES) LICENSE.txt
	@zip -r $(ZIPFILE_ADV) $(PLUGINFILES_ADV) $(TRANSLATIONS_ADV) $(ELEMENTS) $(FIELDS) $(INDEXFILES) LICENSE.txt
33
34
35

clean:
	rm -f $(ZIPFILE) $(ZIPFILE_ADV)