-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (30 loc) · 985 Bytes
/
Makefile
File metadata and controls
43 lines (30 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
target ?= ./boss-bundle
bundle_dir = $(DESTDIR)$(target)
all:
mkdir -p vendor/build/gems
gem build boss.gemspec
mv boss-*.gem vendor/build/gems/
cd ruote; gem build ruote.gemspec
mv ruote/ruote-*.gem vendor/build/gems/
cd ruote-kit; gem build ruote-kit.gemspec
mv ruote-kit/ruote-kit-*.gem vendor/build/gems/
cd ruote-sequel; gem build ruote-sequel.gemspec
mv ruote-sequel/ruote-sequel-*.gem vendor/build/gems/
touch gems_built
install: gems_built
cp vendor/build/gems/*.gem vendor/cache/
bundle install --local --standalone \
--path $(bundle_dir) \
--binstubs $(bundle_dir)/bin
clean:
rm -rf vendor/build .bundle Gemfile.lock gems_built
# To use this locally to update the gems in vendor/cache:
#
# export GEM_HOME=$HOME/.local_gems
# gem install bundler
# gem install builder
# make bundle_dir=. update_gems
update_gems: vendor/build
cd vendor/build; gem generate_index
UPDATE_GEMS=1 bundle package --no-install --path $(bundle_dir)
.PHONY: clean all