Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 130 lines (113 sloc) 5.699 kB
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
1 # Makefile for MiniDBI
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
2
3 PERL_EXE = perl
4 PERL6_EXE = perl6
5 CP = $(PERL_EXE) -MExtUtils::Command -e cp
6 MKPATH = $(PERL_EXE) -MExtUtils::Command -e mkpath
7 RM_F = $(PERL_EXE) -MExtUtils::Command -e rm_f
8 TEST_F = $(PERL_EXE) -MExtUtils::Command -e test_f
9 # try to make these OS agnostic (ie use the same definition on Unix and Windows)
10 LIBSYSTEM = $(shell $(PERL6_EXE) -e 'print @*INC[2]')
11 LIBUSER = $(shell $(PERL6_EXE) -e 'print @*INC[1]')
12
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
13 # first (therefore default) target is MiniDBI.pir
14 all: lib/MiniDBI.pir
720e789 passing the first 20 mysql tests for create, drop, insert, delete (NO…
Martin Berends authored
15
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
16 lib/MiniDBD.pir: lib/MiniDBD.pm6
17 $(PERL6_EXE) --target=pir --output=lib/MiniDBD.pir lib/MiniDBD.pm6
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
18
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
19 lib/MiniDBD/CSV.pir: lib/MiniDBD/CSV.pm6 lib/MiniDBD.pir
20 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBD/CSV.pir lib/MiniDBD/CSV.pm6
31bd2b7 [FakeDBD/CSV.pm6] incomplete beginning of module and test
Martin Berends authored
21
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
22 lib/MiniDBD/mysql.pir: lib/MiniDBD/mysql.pm6 lib/MiniDBD.pir
23 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBD/mysql.pir lib/MiniDBD/mysql.pm6
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
24
5abdea8 @cxreg Update FakeDBD::Pg to MiniDBD::Pg
cxreg authored
25 lib/MiniDBD/Pg.pir: lib/MiniDBD/Pg.pm6 lib/MiniDBD.pir
26 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBD/Pg.pir lib/MiniDBD/Pg.pm6
b4fd1dc @cxreg Add support for Postgresql
cxreg authored
27
b1d068f @moritz build SQLite by default
moritz authored
28 lib/MiniDBD/SQLite.pir: lib/MiniDBD/SQLite.pm6 lib/MiniDBD.pir
29 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBD/SQLite.pir lib/MiniDBD/SQLite.pm6
30
7f80cb4 @moritz get rid of PgPir backend, which never really worked
moritz authored
31 lib/MiniDBI.pir: lib/MiniDBI.pm6 lib/MiniDBD/CSV.pir lib/MiniDBD/mysql.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
32 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBI.pir lib/MiniDBI.pm6
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
33
7f80cb4 @moritz get rid of PgPir backend, which never really worked
moritz authored
34 test: lib/MiniDBI.pir lib/MiniDBD/CSV.pir lib/MiniDBD/mysql.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
b45fc67 [t/99-common.pl6] use .^methods to determine whether to perform or sk…
Martin Berends authored
35 @#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/10-mysql.t
312bbbc [t/99-common.pl] add many tests, many being skipped currently
Martin Berends authored
36 @#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/20-CSV-common.t
b45fc67 [t/99-common.pl6] use .^methods to determine whether to perform or sk…
Martin Berends authored
37 @#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/25-mysql-common.t
84a45aa @kaare Include PgPir in Makefile.
kaare authored
38 @#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/30-pgpir.t
b45fc67 [t/99-common.pl6] use .^methods to determine whether to perform or sk…
Martin Berends authored
39 export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
40
41 # standard install is to the shared system wide directory
7f80cb4 @moritz get rid of PgPir backend, which never really worked
moritz authored
42 install: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
43 @echo "--> $(LIBSYSTEM)"
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
44 @$(CP) lib/MiniDBI.pm6 lib/MiniDBI.pir $(LIBSYSTEM)
45 @$(CP) lib/MiniDBD.pm6 lib/MiniDBD.pir $(LIBSYSTEM)
46 @$(MKPATH) $(LIBSYSTEM)/MiniDBD
47 @$(CP) lib/MiniDBD/CSV.pm6 lib/MiniDBD/CSV.pir $(LIBSYSTEM)/MiniDBD
48 @$(CP) lib/MiniDBD/mysql.pm6 lib/MiniDBD/mysql.pir $(LIBSYSTEM)/MiniDBD
5abdea8 @cxreg Update FakeDBD::Pg to MiniDBD::Pg
cxreg authored
49 @$(CP) lib/MiniDBD/Pg.pm6 lib/MiniDBD/Pg.pir $(LIBSYSTEM)/MiniDBD
b1d068f @moritz build SQLite by default
moritz authored
50 @$(CP) lib/MiniDBD/SQLite.pm6 lib/MiniDBD/SQLite.pir $(LIBSYSTEM)/MiniDBD
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
51
52 # if user has no permission to install globally, try a personal directory
7f80cb4 @moritz get rid of PgPir backend, which never really worked
moritz authored
53 install-user: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
54 @echo "--> $(LIBUSER)"
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
55 @$(CP) lib/MiniDBI.pm6 lib/MiniDBI.pir $(LIBUSER)
56 @$(CP) lib/MiniDBD.pm6 lib/MiniDBD.pir $(LIBUSER)
57 @$(MKPATH) $(LIBUSER)/MiniDBD
58 @$(CP) lib/MiniDBD/CSV.pm6 lib/MiniDBD/CSV.pir $(LIBUSER)/MiniDBD
59 @$(CP) lib/MiniDBD/mysql.pm6 lib/MiniDBD/mysql.pir $(LIBUSER)/MiniDBD
5abdea8 @cxreg Update FakeDBD::Pg to MiniDBD::Pg
cxreg authored
60 @$(CP) lib/MiniDBD/Pg.pm6 lib/MiniDBD/Pg.pir $(LIBUSER)/MiniDBD
b1d068f @moritz build SQLite by default
moritz authored
61 @$(CP) lib/MiniDBD/SQLite.pm6 lib/MiniDBD/SQLite.pir $(LIBUSER)/MiniDBD
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
62
63 # Uninstall from the shared system wide directory.
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
64 # This might leave an empty MiniDBD subdirectory behind.
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
65 uninstall:
66 @echo "x-> $(LIBSYSTEM)"
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
67 @$(TEST_F) $(LIBSYSTEM)/MiniDBI.pm6
68 @$(RM_F) $(LIBSYSTEM)/MiniDBD.pm6
69 @$(TEST_F) $(LIBSYSTEM)/MiniDBI.pir
70 @$(RM_F) $(LIBSYSTEM)/MiniDBD.pir
71 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/CSV.pm6
72 @$(RM_F) $(LIBSYSTEM)/MiniDBD/CSV.pm6
73 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/CSV.pir
74 @$(RM_F) $(LIBSYSTEM)/MiniDBD/CSV.pir
75 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/mysql.pm6
76 @$(RM_F) $(LIBSYSTEM)/MiniDBD/mysql.pm6
77 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/mysql.pir
78 @$(RM_F) $(LIBSYSTEM)/MiniDBD/mysql.pir
5abdea8 @cxreg Update FakeDBD::Pg to MiniDBD::Pg
cxreg authored
79 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/Pg.pm6
80 @$(RM_F) $(LIBSYSTEM)/MiniDBD/Pg.pm6
81 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/Pg.pir
82 @$(RM_F) $(LIBSYSTEM)/MiniDBD/Pg.pir
b1d068f @moritz build SQLite by default
moritz authored
83 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/SQLite.pm6
84 @$(RM_F) $(LIBSYSTEM)/MiniDBD/SQLite.pm6
85 @$(TEST_F) $(LIBSYSTEM)/MiniDBD/SQLite.pir
86 @$(RM_F) $(LIBSYSTEM)/MiniDBD/SQLite.pir
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
87
88 # Uninstall from the user's own Perl 6 directory.
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
89 # This might leave an empty MiniDBD subdirectory behind.
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
90 uninstall-user:
91 @echo "x-> $(LIBUSER)"
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
92 @$(TEST_F) $(LIBUSER)/MiniDBI.pm6
93 @$(RM_F) $(LIBUSER)/MiniDBI.pm6
94 @$(TEST_F) $(LIBUSER)/MiniDBI.pir
95 @$(RM_F) $(LIBUSER)/MiniDBI.pir
96 @$(TEST_F) $(LIBUSER)/MiniDBD/CSV.pm6
97 @$(RM_F) $(LIBUSER)/MiniDBD/CSV.pm6
98 @$(TEST_F) $(LIBUSER)/MiniDBD/CSV.pir
99 @$(RM_F) $(LIBUSER)/MiniDBD/CSV.pir
100 @$(TEST_F) $(LIBUSER)/MiniDBD/mysql.pm6
101 @$(RM_F) $(LIBUSER)/MiniDBD/mysql.pm6
102 @$(TEST_F) $(LIBUSER)/MiniDBD/mysql.pir
103 @$(RM_F) $(LIBUSER)/MiniDBD/mysql.pir
5abdea8 @cxreg Update FakeDBD::Pg to MiniDBD::Pg
cxreg authored
104 @$(TEST_F) $(LIBUSER)/MiniDBD/Pg.pm6
105 @$(RM_F) $(LIBUSER)/MiniDBD/Pg.pm6
106 @$(TEST_F) $(LIBUSER)/MiniDBD/Pg.pir
107 @$(RM_F) $(LIBUSER)/MiniDBD/Pg.pir
b1d068f @moritz build SQLite by default
moritz authored
108 @$(TEST_F) $(LIBUSER)/MiniDBD/SQLite.pm6
109 @$(RM_F) $(LIBUSER)/MiniDBD/SQLite.pm6
110 @$(TEST_F) $(LIBUSER)/MiniDBD/SQLite.pir
111 @$(RM_F) $(LIBUSER)/MiniDBD/SQLite.pir
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
112
113 clean:
114 @# delete compiled files
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
115 $(RM_F) lib/*.pir lib/MiniDBD/*.pir
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
116 @# delete all editor backup files
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
117 $(RM_F) *~ lib/*~ t/*~ lib/MiniDBD/*~
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
118
119 help:
120 @echo
69d6f1d rename FakeDBI to MiniDBI everywhere
Martin Berends authored
121 @echo "You can make the following in 'MiniDBI':"
e9ee1a6 very incomplete initial work with zavolaj and mysql client
Martin Berends authored
122 @echo "clean removes compiled, temporary and backup files"
123 @echo "test runs a local test suite"
124 @echo "install copies .pm and .pir files to system perl6 lib/"
125 @echo " (may require admin or root permission)"
126 @echo "uninstall removes .pm6 and .pir file(s) from system lib/"
127 @echo "install-user copies .pm and .pir files to user perl6 lib/"
128 @echo "uninstall-user removes .pm6 and .pir file(s) from user perl6 lib/"
129
Something went wrong with that request. Please try again.