Skip to content
Snippets Groups Projects
Select Git revision
  • 6a04f2ca02497072b45868f5793b1312c6c29478
  • master default protected
  • V1.8.2
  • V1.8.1
  • V1.8
  • V1.7
  • V1.6
  • V1.5.5
  • V1.5.4
  • V1.5.3
  • V1.5.2
  • V1.5.1
  • V1.5
  • V1.4
  • V1.3.1
  • V1.3
  • V1.2
  • V1.1
  • V1.0a
  • V1.0
20 results

Makefile

Blame
  • Reinhold Kainhofer's avatar
    Reinhold Kainhofer authored
    Version 1.5.4: Fix problems with large downloads (turn off the output cache and send the file in chunks)
    6a04f2ca
    History
    Makefile 850 B
    BASE=downloads_for_sale
    PLUGINTYPE=vmcustom
    VERSION=1.5.4
    
    PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html
    
    TRANSLATIONS=$(call wildcard,language/*/*.plg_$(PLUGINTYPE)_$(BASE).*ini) 
    INDEXFILES=$(BASE)/index.html language/index.html $(call wildcard,language/*/index.html)
    ELEMENTS=$(call wildcard,elements/*.php) elements/index.html
    TMPLFILES=$(call wildcard,$(BASE)/tmpl/*.php) $(BASE)/index.html $(BASE)/tmpl/index.html
    ASSETS=$(call wildcard,$(BASE)/assets/*.png) $(call wildcard,$(BASE)/assets/*.css) $(BASE)/assets/index.html
    ZIPFILE=plg_$(PLUGINTYPE)_$(BASE)_v$(VERSION).zip
    
    
    zip: $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(TMPLFILES)
    	@echo "Packing all files into distribution file $(ZIPFILE):"
    	@zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(INDEXFILES) $(TMPLFILES) $(ASSETS)
    
    clean:
    	rm -f $(ZIPFILE)