Makefile 717 Bytes
Newer Older
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
1
2
BASE=donation
PLUGINTYPE=vmcustom
3
VERSION=1.0
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
4
5
6
7
8

PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html

TRANSLATIONS=$(call wildcard,language/*/*.plg_$(PLUGINTYPE)_$(BASE).*ini) 
INDEXFILES=language/index.html $(call wildcard,language/*/index.html)
9
TMPLFILES=$(call wildcard,$(BASE)/tmpl/*.php) $(call wildcard,$(BASE)/tmpl/index.html) $(call wildcard,$(BASE)/index.html)  
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
10
11
12
13
14
15
16
17
18
19
ASSETS=
ZIPFILE=plg_$(PLUGINTYPE)_$(BASE)_v$(VERSION).zip


zip: $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(INDEXFILES) $(TMPLFILES) $(ASSETS)
	@echo "Packing all files into distribution file $(ZIPFILE):"
	@zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(INDEXFILES) $(TMPLFILES) $(ASSETS)

clean:
	rm -f $(ZIPFILE)