# -*- makefile -*-

# The debian/local/ directory contains some small code snippets that
# are needed for build, and are in the NEW queue.  We ship them as
# vendored files in debian/local/ until things have been resolved.

# You may update this code by running:
#
# make -f debian/README.source refresh

.PHONY: refresh enumflag

refresh: enumflag

clean:
	rm -rfv debian/local

E=debian/local/enumflag/v2
enumflag:
	mkdir -pv $(E)
	wget -nv -P $(E)/ 'https://raw.githubusercontent.com/thediveo/enumflag/refs/tags/v2.0.7/completion.go'
	wget -nv -P $(E)/ 'https://raw.githubusercontent.com/thediveo/enumflag/refs/tags/v2.0.7/flag.go'
	wget -nv -P $(E)/ 'https://raw.githubusercontent.com/thediveo/enumflag/refs/tags/v2.0.7/mapper.go'
	wget -nv -P $(E)/ 'https://raw.githubusercontent.com/thediveo/enumflag/refs/tags/v2.0.7/value_scalar.go'
	wget -nv -P $(E)/ 'https://raw.githubusercontent.com/thediveo/enumflag/refs/tags/v2.0.7/value_slice.go'
