# Comment from specfile from distgit 9b7a65231 Mamoru TASAKA:
# So it seems that with rubygems 2.7.3 --install-dir option always
# needs --no-user-install???
# tld;dr; added flag --no-user-install, details in the commit
build_gems:
	mkdir -p vendor/bundle/ruby
	gem install --force --verbose --no-rdoc --no-ri -l --no-user-install -i vendor/bundle/ruby \
	vendor/cache/orderedhash-0.0.6.gem \
	vendor/cache/rpam-ruby19-1.2.1.gem \
	vendor/cache/sinatra-contrib-2.0.0.gem \
	-- '--with-ldflags="-Wl,-z,now -Wl,-z,relro"'

get_gems:
	bundle package

clean:
	rm -rfv vendor/
