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