Makefile 821 Bytes
Newer Older
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
1
2
BASE=eurecap
PLUGINTYPE=vmextended
3
VERSION=0.3
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
4
5
6
7
8
9
10
11

PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html 
# $(BASE)/
MVCFILES=controllers/ models/ views/

SYSTRANSLATIONS=$(call wildcard,language/*/*.plg_$(PLUGINTYPE)_$(BASE).*sys.ini)
NONSYSTRANSLATIONS=${SYSTRANSLATIONS:%.sys.ini=%.ini}
TRANSLATIONS=$(SYSTRANSLATIONS) $(NONSYSTRANSLATIONS) $(call wildcard,language/*/index.html) language/index.html
12
13
FIELDS=fields/
ELEMENTS=elements/
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
14
15
16
17
18
19
20
21
22
23
ZIPFILE=plg_$(PLUGINTYPE)_$(BASE)_v$(VERSION).zip


all: zip

$(NONSYSTRANSLATIONS): %.ini: %.sys.ini
	cp $< $@

zip: $(PLUGINFILES) $(TRANSLATIONS) $(SYSTRANSLATIONS) $(NONSYSTRANSLATIONS)
	@echo "Packing all files into distribution file $(ZIPFILE):"
24
	@zip -r $(ZIPFILE) $(PLUGINFILES) $(MVCFILES) $(TRANSLATIONS) $(FIELDS) $(ELEMENTS) LICENSE.txt
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
25
26
27

clean:
	rm -f $(ZIPFILE)