#!/usr/bin/make -f VERSION = 5.1.0 CHECKOUT = f761aece62bf8224dd6cf6f8bc90fe838fe5e053 CHECKOUTDIR = fonts/google FONT = lato %: dh $@ get-orig-source: CURDIR=`pwd` && \ TMPDIR=`mktemp -d /tmp/node-fontsource-$(FONT)-$(VERSION).XXXXXX` && \ cd $$TMPDIR && \ git clone https://github.com/fontsource/font-files.git --filter=blob:none --no-checkout --sparse font-files && \ cd font-files && \ git sparse-checkout init --cone && \ git sparse-checkout add $(CHECKOUTDIR)/$(FONT) && \ git checkout $(CHECKOUT) && \ cd $(CHECKOUTDIR) && \ tar -Jcf $$CURDIR/node-fontsource-$(FONT)_$(VERSION).orig.tar.xz $(FONT) && \ rm -rf $$TMPDIR .PHONY: get-orig-source