2014-11-04 14:36:49 +00:00
|
|
|
|
2016-04-05 06:55:43 +00:00
|
|
|
VERSION=0.8.1
|
2014-11-04 14:36:49 +00:00
|
|
|
|
2016-02-28 19:40:26 +00:00
|
|
|
SRC_VERSION=master
|
|
|
|
|
2014-11-04 14:36:49 +00:00
|
|
|
outbox:
|
|
|
|
mkdir -p $@
|
|
|
|
|
|
|
|
clean-outbox: outbox
|
|
|
|
rm -f outbox/*
|
|
|
|
|
2016-02-28 19:40:26 +00:00
|
|
|
.PHONY: linux freebsd pkger
|
2014-11-04 14:36:49 +00:00
|
|
|
|
2015-04-14 12:36:29 +00:00
|
|
|
%-vm: %
|
2015-04-16 03:32:28 +00:00
|
|
|
cd vagrant-static && vagrant up $<
|
2014-11-04 14:36:49 +00:00
|
|
|
|
2015-04-14 12:36:29 +00:00
|
|
|
%-build: % %-vm
|
2016-02-28 19:40:26 +00:00
|
|
|
cd vagrant-static && vagrant ssh $< -c "/vagrant/build.sh ${SRC_VERSION}"
|
2015-04-14 12:36:29 +00:00
|
|
|
|
|
|
|
%-package: % clean-outbox %-build
|
|
|
|
mkdir -p $<-pkg/lnav-${VERSION}
|
|
|
|
cp ../README ../NEWS $<-pkg/lnav-${VERSION}
|
2015-04-16 03:32:28 +00:00
|
|
|
mv vagrant-static/lnav $<-pkg/lnav-${VERSION}
|
2015-04-14 12:36:29 +00:00
|
|
|
cd $<-pkg && zip -r ../outbox/lnav-${VERSION}-$<-64bit.zip lnav-${VERSION}
|
2015-04-14 16:37:48 +00:00
|
|
|
rm -rf $<-pkg
|
2014-11-04 14:36:49 +00:00
|
|
|
|
2016-02-28 19:40:26 +00:00
|
|
|
linux-ospkg: pkger-vm linux-package
|
|
|
|
rm -f vagrant-static/lnav\*.deb vagrant-static/lnav\*.rpm
|
|
|
|
cd vagrant-static && vagrant ssh pkger -c "/vagrant/build-pkg.sh ${VERSION}"
|
|
|
|
mv vagrant-static/lnav*.deb vagrant-static/lnav*.rpm outbox/
|
|
|
|
|
2014-11-04 14:36:49 +00:00
|
|
|
osx-build:
|
|
|
|
rm -rf osx-build-dir
|
|
|
|
mkdir -p osx-build-dir
|
2015-04-05 23:10:47 +00:00
|
|
|
cd ../ && ./autogen.sh
|
2014-11-06 05:29:31 +00:00
|
|
|
cd osx-build-dir && ../../configure && make -j && make distcheck -j8 && make dist-bzip2
|
2014-11-04 14:36:49 +00:00
|
|
|
|
|
|
|
osx-package: clean-outbox osx-build
|
|
|
|
mkdir -p osx-pkg/lnav-${VERSION}
|
|
|
|
cp ../README ../NEWS osx-pkg/lnav-${VERSION}
|
|
|
|
cp osx-build-dir/src/lnav osx-pkg/lnav-${VERSION}
|
|
|
|
cp osx-build-dir/lnav-${VERSION}.tar.gz outbox/
|
2014-11-06 05:29:31 +00:00
|
|
|
cp osx-build-dir/lnav-${VERSION}.tar.bz2 outbox/
|
2014-11-04 14:36:49 +00:00
|
|
|
cd osx-pkg && zip -r ../outbox/lnav-${VERSION}-os-x.zip lnav-${VERSION}
|
2015-04-14 16:37:48 +00:00
|
|
|
rm -rf osx-pkg
|
2014-11-04 14:36:49 +00:00
|
|
|
|
2016-02-28 19:40:26 +00:00
|
|
|
release: linux-ospkg freebsd-package osx-package
|
|
|
|
|
|
|
|
push:
|
|
|
|
env LANG=UTF-8 package_cloud push tstack/lnav/ubuntu/lucid outbox/lnav*.deb
|
2016-04-05 06:55:43 +00:00
|
|
|
env LANG=UTF-8 package_cloud push tstack/lnav/el/5 outbox/lnav-0.8.1-1.x86_64.rpm
|
2016-02-28 19:40:26 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
cd vagrant-static && vagrant destroy -f
|