public
Description: A series of scripts and scenarios to do MySQL testing with ANSTE
Homepage: http://public.warp.es/anste/
Clone URL: git://github.com/koke/anste-mysql.git
anste-mysql / Makefile
100644 36 lines (30 sloc) 1.002 kb
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
PREFIX = /usr/local
DATADIR = $(PREFIX)/share/anste
LIBDIR = $(PREFIX)/lib
SBINDIR = $(PREFIX)/sbin
BINDIR = $(PREFIX)/bin
VERSION = `cat VERSION`
EXPORT = anste-mysql-$(VERSION)
 
distclean:
rm -rf $(EXPORT)
rm -f anste-mysql-$(VERSION).tar.gz
rm -f anste-mysql_$(VERSION)*
rm -f *.deb
 
export: distclean
git archive --format=tar --prefix=$(EXPORT)/ master | tar x
 
dist: export
tar cvvzf anste-mysql-$(VERSION).tar.gz $(EXPORT)
 
install:
install -d $(DESTDIR)$(DATADIR)
install -d images $(DESTDIR)$(DATADIR)/images
install -m644 images/* $(DESTDIR)$(DATADIR)/images
install -d $(DESTDIR)$(DATADIR)/scenarios
cp -a scenarios/* $(DESTDIR)$(DATADIR)/scenarios
install -d files $(DESTDIR)$(DATADIR)/files
cp -a files/* $(DESTDIR)$(DATADIR)/files
install -d $(DESTDIR)$(DATADIR)/scripts
install -m755 scripts/* $(DESTDIR)$(DATADIR)/scripts
install -d $(DESTDIR)$(DATADIR)/tests
cp -a tests/mysql $(DESTDIR)$(DATADIR)/tests
 
pkg: dist
cd $(EXPORT) && dpkg-buildpackage -rfakeroot -uc -us