#!/usr/bin/make -f # # $Id$ TOPDIR=$(shell /bin/pwd) DEB_DH_ALWAYS_EXCLUDE := .svn:downloads srcname = openlayers3 package = dojo-$(srcname) # docdir = debian/tmp/usr/share/doc/$(package) DESTDIR = $(TOPDIR)/debian/$(package)/usr/share/dojo/htdocs/openlayers3 TMPDIR = $(TOPDIR)/debian/tmp ol3_version=v4.1.1 INSTALL_PROGRAM = install %: dh $@ install-indep:: common-install-indep clean:: cd debian && rm -rf *.substvars *.log devhost.txt.gz files dojo-openlayers3 tmp rm -f common-install-indep common-install-indep: rm -rf $(TMPDIR) rm -rf $(DESTDIR) mkdir -pv $(TMPDIR) mkdir -pv $(DESTDIR) cd $(TMPDIR); wget https://github.com/openlayers/ol3/releases/download/$(ol3_version)/$(ol3_version)-dist.zip cd $(TMPDIR); unzip $(ol3_version)-dist.zip mv $(TMPDIR)/$(ol3_version)-dist/*.js $(TMPDIR)/$(ol3_version)-dist/*.css $(DESTDIR) touch common-install-indep