This repository has been archived on 2021-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
greenlight/Makefile

21 lines
692 B
Makefile

prefix = /opt/greenlight
BUNDLE = $(HOME)/.gem/ruby/2.5.0/bin/bundle
all:
[ -x $(BUNDLE) ] || gem install --user-install bundler
$(BUNDLE) config --global frozen 1
cp -r ../bundle vendor/bundle
#$(BUNDLE) install --deployment --without development:test:assets -j4 --path=vendor/bundle
#rm -rf vendor/bundle/ruby/2.5.0/cache/*.gem
#find vendor/bundle/ruby/2.5.0/gems/ -name "*.c" -delete
#find vendor/bundle/ruby/2.5.0/gems/ -name "*.o" -delete
install:
cp -r app bin .bundle config config.ru db Gemfile Gemfile.lock greenlight.nginx \
lib log public Rakefile .rspec .rubocop.yml .ruby-version sample.env \
scripts spec vendor $(DESTDIR)$(prefix)/
clean:
rm -rf vendor/bundle