Skip to content
Snippets Groups Projects
Select Git revision
  • 50a5faa84a690c580bd21ef000479c540431e924
  • master default protected
  • Bugfixes_before_library_factorization
  • offer-multiple-rules
  • V6.2.4
  • V6.2.3
  • AwoCoupon_V1.2
  • V6.2.2
  • VMCoupon_V1.0
  • AwoCoupon_V1.1
  • V6.2.1
  • V6.1.7
  • V6.2
  • V6.1.6
  • V6.1.4
  • V6.1.5
  • V6.1.3
  • V6.1.2
  • V6.1.1
  • V6.1
  • V6.0
  • V5.99.1
  • V5.99
  • AwoCoupon_V1.0
24 results

Makefile

Blame
  • Makefile 1.70 KiB
    BASE=rules_shipping
    BASE_ADV=rules_shipping_advanced
    PLUGINTYPE=vmshipment
    ZIPBASE=opentools_vm
    VERSION=5.3
    
    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
    
    TRANSLATIONS=$(call wildcard,language/en*/*.plg_$(PLUGINTYPE)_$(BASE).*ini) 
    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) 
    FIELDS=$(call wildcard,fields/*.php) 
    ZIPFILE=plg_$(ZIPBASE)_$(BASE)_v$(VERSION).zip
    ZIPFILE_ADV=plg_$(ZIPBASE)_$(BASE_ADV)_v$(VERSION).zip
    
    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
    # # 	@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
    
    zip: $(PLUGINFILES) $(TRANSLATIONS) $(ADVANCEDFILES)
    	@echo "Packing all files into distribution file $(ZIPFILE):"
    	@zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(FIELDS) $(INDEXFILES) LICENSE.txt
    	@zip -r $(ZIPFILE_ADV) $(PLUGINFILES_ADV) $(TRANSLATIONS_ADV) $(ELEMENTS) $(FIELDS) $(INDEXFILES) LICENSE.txt
    
    clean:
    	rm -f $(ZIPFILE) $(ZIPFILE_ADV)