File: rules

package info (click to toggle)
less-elements.js 0.0~git20130115.0.191754c-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 56 kB
  • ctags: 4
  • sloc: makefile: 13
file content (16 lines) | stat: -rwxr-xr-x 519 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
%:
	dh $@

.PHONY: get-orig-source
PKD := $(abspath $(dir $(MAKEFILE_LIST)))
PKG := $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
tmpdir:= $(shell mktemp -d)
wrkdir:= $(shell pwd)

get-orig-source:
	@echo "# Downloading..."
	cd ${tmpdir} && \
	wget https://github.com/dmitryf/elements/archive/master.tar.gz && \
	mv master.tar.gz ${wrkdir}/${PKG}_0.0~gitVERSION.COMMIT.ID.orig.tar
	@echo "Please rename the tarball depending on the version and commit it with pristine-tar"