Sha256: 4ce60d23a189d579c02f27fe3faa3060a29f33a8bf3c0d871daad3a99871f415

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

# this is the local.mk file used by Eric Wong on his dev boxes.
# GNUmakefile will source local.mk in the top-level source tree
# if it is present.
#
# This is depends on a bunch of GNU-isms from bash, sed, touch.

DLEXT := so
rack_ver := 1.0.0

# Avoid loading rubygems to speed up tests because gmake is
# fork+exec heavy with Ruby.
ifeq ($(r19),)
  ruby := $(HOME)/bin/ruby
  RUBYLIB := $(HOME)/lib/ruby/gems/1.8/gems/rack-$(rack_ver)/lib
else
  export PATH := $(HOME)/ruby-1.9/bin:$(PATH)
  ruby := $(HOME)/ruby-1.9/bin/ruby --disable-gems
  RUBYLIB := $(HOME)/ruby-1.9/lib/ruby/gems/1.9.1/gems/rack-$(rack_ver)/lib
endif

# pipefail is THE reason to use bash (v3+)
SHELL := /bin/bash -e -o pipefail

full-test: test-18 test-19
test-18:
	$(MAKE) test test-rails 2>&1 | sed -u -e 's!^!1.8 !'
test-19:
	$(MAKE) test test-rails r19=1 2>&1 | sed -u -e 's!^!1.9 !'

# publishes docs to http://unicorn.bogomips.org
publish_doc:
	-git set-file-times
	$(MAKE) doc
	$(MAKE) doc_gz
	rsync -av --delete doc/ dcvr:/srv/unicorn/
	git ls-files | xargs touch

# Create gzip variants of the same timestamp as the original so nginx
# "gzip_static on" can serve the gzipped versions directly.
doc_gz: suf := html js css
doc_gz: docs = $(shell find doc/ -regex '^.*\.\(html\|js\|css\)$$')
doc_gz:
	for i in $(docs); do \
	  gzip --rsyncable < $$i > $$i.gz; touch -r $$i $$i.gz; done

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unicorn-0.90.0 local.mk.sample
unicorn-0.9.0 local.mk.sample
unicorn-0.9.1 local.mk.sample
unicorn-0.9.2 local.mk.sample