Merge lp:~percona-dev/percona-server/release-5.1.46-11-makefile into lp:percona-server/release-5.1.46-11

Proposed by Aleksandr Kuzminsky
Status: Merged
Approved by: Vadim Tkachenko
Approved revision: no longer in the source branch.
Merged at revision: 10
Proposed branch: lp:~percona-dev/percona-server/release-5.1.46-11-makefile
Merge into: lp:percona-server/release-5.1.46-11
Diff against target: 51 lines (+47/-0)
1 file modified
Makefile (+47/-0)
To merge this branch: bzr merge lp:~percona-dev/percona-server/release-5.1.46-11-makefile
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Review via email: mp+25997@code.launchpad.net

Description of the change

Added Makefile for Percona Server source tree

To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) :
review: Approve
Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

I'd like to have possibility to patch already existing .tar.gz, not download it

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'Makefile'
2--- Makefile 1970-01-01 00:00:00 +0000
3+++ Makefile 2010-05-25 21:00:48 +0000
4@@ -0,0 +1,47 @@
5+FETCH_CMD=wget
6+MASTER_SITE=http://www.percona.com/downloads/community
7+MYSQL_VERSION=5.1.46
8+
9+all: main install-lic tests misc
10+ @echo ""
11+ @echo "Percona Server source code is ready"
12+ @echo "Now change directory to Percona-Server define variables as show below"
13+ @echo ""
14+ export CFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2"
15+ export CXXFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2"
16+ export LIBS=-lrt
17+ @echo ""
18+ @echo "and run ./configure ... --without-plugin-innobase --with-plugin-innodb_plugin && make all install"
19+ @echo ""
20+
21+
22+install-lic:
23+ @echo "Installing license files"
24+ install -m 644 COPYING.* Percona-Server
25+
26+main: mysql-$(MYSQL_VERSION).tar.gz
27+ @echo "Prepare Percona Server sources"
28+ rm -rf mysql-$(MYSQL_VERSION)
29+ rm -rf Percona-Server
30+ tar zxf mysql-$(MYSQL_VERSION).tar.gz
31+ mv mysql-$(MYSQL_VERSION) Percona-Server
32+ (cat `cat series`) | patch -p1 -d Percona-Server
33+
34+mysql-$(MYSQL_VERSION).tar.gz:
35+ @echo "Downloading MySQL sources from $(MASTER_SITE)"
36+ $(FETCH_CMD) $(MASTER_SITE)/mysql-$(MYSQL_VERSION).tar.gz
37+
38+tests:
39+ @echo "Installing mysql-test files"
40+ install -m 644 mysql-test/*.opt Percona-Server/mysql-test/t/
41+ install -m 644 mysql-test/*.test Percona-Server/mysql-test/t/
42+ install -m 644 mysql-test/*.result Percona-Server/mysql-test/r/
43+
44+misc:
45+ @echo "Installing other files"
46+ install -m 644 lrusort.py Percona-Server/scripts
47+
48+clean:
49+ rm -rf mysql-$(MYSQL_VERSION) Percona-Server
50+ rm -f mysql-$(MYSQL_VERSION).tar.gz
51+

Subscribers

People subscribed via source and target branches

to all changes: