Skip to content
This repository
Newer
Older
100644 118 lines (102 sloc) 4.943 kb
842327f4 »
2012-04-27 rename to DBIish
1 # Makefile for DBIish
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
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)
6efd2372 »
2012-09-29 unbust installation with current rakudo
10 LIBSYSTEM = $(shell $(PERL6_EXE) -e 'print @*INC[1]')
11 LIBUSER = $(shell $(PERL6_EXE) -e 'print @*INC[0]')
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
12
842327f4 »
2012-04-27 rename to DBIish
13 # first (therefore default) target is DBIish.pir
14 all: lib/DBIish.pir
720e7892 »
2010-05-17 passing the first 20 mysql tests for create, drop, insert, delete (NO…
15
842327f4 »
2012-04-27 rename to DBIish
16 lib/DBDish.pir: lib/DBDish.pm6
17 $(PERL6_EXE) --target=pir --output=lib/DBDish.pir lib/DBDish.pm6
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
18
842327f4 »
2012-04-27 rename to DBIish
19 lib/DBDish/mysql.pir: lib/DBDish/mysql.pm6 lib/DBDish.pir
20 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/DBDish/mysql.pir lib/DBDish/mysql.pm6
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
21
842327f4 »
2012-04-27 rename to DBIish
22 lib/DBDish/Pg.pir: lib/DBDish/Pg.pm6 lib/DBDish.pir
23 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/DBDish/Pg.pir lib/DBDish/Pg.pm6
b4fd1dc0 »
2010-06-26 Add support for Postgresql
24
842327f4 »
2012-04-27 rename to DBIish
25 lib/DBDish/SQLite.pir: lib/DBDish/SQLite.pm6 lib/DBDish.pir
26 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/DBDish/SQLite.pir lib/DBDish/SQLite.pm6
c64574ab »
2012-04-27 Add fetchrow-AoH, fetchrow-HoA and mock-test them
27 lib/DBDish/TestMock.pir: lib/DBDish/TestMock.pm6 lib/DBDish.pir
28 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/DBDish/TestMock.pir lib/DBDish/TestMock.pm6
b1d068fd »
2012-04-22 build SQLite by default
29
c64574ab »
2012-04-27 Add fetchrow-AoH, fetchrow-HoA and mock-test them
30 lib/DBIish.pir: lib/DBIish.pm6 lib/DBDish/mysql.pir lib/DBDish/Pg.pir lib/DBDish/SQLite.pir lib/DBDish/TestMock.pir
842327f4 »
2012-04-27 rename to DBIish
31 export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/DBIish.pir lib/DBIish.pm6
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
32
c64574ab »
2012-04-27 Add fetchrow-AoH, fetchrow-HoA and mock-test them
33 test: lib/DBIish.pir
b45fc677 »
2010-06-03 [t/99-common.pl6] use .^methods to determine whether to perform or sk…
34 @#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/10-mysql.t
35 @#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/25-mysql-common.t
84a45aa5 »
2010-07-01 Include PgPir in Makefile.
36 @#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/30-pgpir.t
b45fc677 »
2010-06-03 [t/99-common.pl6] use .^methods to determine whether to perform or sk…
37 export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
38
39 # standard install is to the shared system wide directory
c64574ab »
2012-04-27 Add fetchrow-AoH, fetchrow-HoA and mock-test them
40 install: lib/DBIish.pir lib/DBDish.pir
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
41 @echo "--> $(LIBSYSTEM)"
842327f4 »
2012-04-27 rename to DBIish
42 @$(CP) lib/DBIish.pm6 lib/DBIish.pir $(LIBSYSTEM)
43 @$(CP) lib/DBDish.pm6 lib/DBDish.pir $(LIBSYSTEM)
44 @$(MKPATH) $(LIBSYSTEM)/DBDish
45 @$(CP) lib/DBDish/mysql.pm6 lib/DBDish/mysql.pir $(LIBSYSTEM)/DBDish
46 @$(CP) lib/DBDish/Pg.pm6 lib/DBDish/Pg.pir $(LIBSYSTEM)/DBDish
47 @$(CP) lib/DBDish/SQLite.pm6 lib/DBDish/SQLite.pir $(LIBSYSTEM)/DBDish
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
48
49 # if user has no permission to install globally, try a personal directory
842327f4 »
2012-04-27 rename to DBIish
50 install-user: lib/DBIish.pir lib/DBDish.pir lib/DBDish/mysql.pir lib/DBDish/Pg.pir lib/DBDish/SQLite.pir
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
51 @echo "--> $(LIBUSER)"
842327f4 »
2012-04-27 rename to DBIish
52 @$(CP) lib/DBIish.pm6 lib/DBIish.pir $(LIBUSER)
53 @$(CP) lib/DBDish.pm6 lib/DBDish.pir $(LIBUSER)
54 @$(MKPATH) $(LIBUSER)/DBDish
55 @$(CP) lib/DBDish/mysql.pm6 lib/DBDish/mysql.pir $(LIBUSER)/DBDish
56 @$(CP) lib/DBDish/Pg.pm6 lib/DBDish/Pg.pir $(LIBUSER)/DBDish
57 @$(CP) lib/DBDish/SQLite.pm6 lib/DBDish/SQLite.pir $(LIBUSER)/DBDish
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
58
59 # Uninstall from the shared system wide directory.
842327f4 »
2012-04-27 rename to DBIish
60 # This might leave an empty DBDish subdirectory behind.
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
61 uninstall:
62 @echo "x-> $(LIBSYSTEM)"
842327f4 »
2012-04-27 rename to DBIish
63 @$(TEST_F) $(LIBSYSTEM)/DBIish.pm6
64 @$(RM_F) $(LIBSYSTEM)/DBDish.pm6
65 @$(TEST_F) $(LIBSYSTEM)/DBIish.pir
66 @$(RM_F) $(LIBSYSTEM)/DBDish.pir
67 @$(TEST_F) $(LIBSYSTEM)/DBDish/mysql.pm6
68 @$(RM_F) $(LIBSYSTEM)/DBDish/mysql.pm6
69 @$(TEST_F) $(LIBSYSTEM)/DBDish/mysql.pir
70 @$(RM_F) $(LIBSYSTEM)/DBDish/mysql.pir
71 @$(TEST_F) $(LIBSYSTEM)/DBDish/Pg.pm6
72 @$(RM_F) $(LIBSYSTEM)/DBDish/Pg.pm6
73 @$(TEST_F) $(LIBSYSTEM)/DBDish/Pg.pir
74 @$(RM_F) $(LIBSYSTEM)/DBDish/Pg.pir
75 @$(TEST_F) $(LIBSYSTEM)/DBDish/SQLite.pm6
76 @$(RM_F) $(LIBSYSTEM)/DBDish/SQLite.pm6
77 @$(TEST_F) $(LIBSYSTEM)/DBDish/SQLite.pir
78 @$(RM_F) $(LIBSYSTEM)/DBDish/SQLite.pir
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
79
80 # Uninstall from the user's own Perl 6 directory.
842327f4 »
2012-04-27 rename to DBIish
81 # This might leave an empty DBDish subdirectory behind.
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
82 uninstall-user:
83 @echo "x-> $(LIBUSER)"
842327f4 »
2012-04-27 rename to DBIish
84 @$(TEST_F) $(LIBUSER)/DBIish.pm6
85 @$(RM_F) $(LIBUSER)/DBIish.pm6
86 @$(TEST_F) $(LIBUSER)/DBIish.pir
87 @$(RM_F) $(LIBUSER)/DBIish.pir
88 @$(TEST_F) $(LIBUSER)/DBDish/mysql.pm6
89 @$(RM_F) $(LIBUSER)/DBDish/mysql.pm6
90 @$(TEST_F) $(LIBUSER)/DBDish/mysql.pir
91 @$(RM_F) $(LIBUSER)/DBDish/mysql.pir
92 @$(TEST_F) $(LIBUSER)/DBDish/Pg.pm6
93 @$(RM_F) $(LIBUSER)/DBDish/Pg.pm6
94 @$(TEST_F) $(LIBUSER)/DBDish/Pg.pir
95 @$(RM_F) $(LIBUSER)/DBDish/Pg.pir
96 @$(TEST_F) $(LIBUSER)/DBDish/SQLite.pm6
97 @$(RM_F) $(LIBUSER)/DBDish/SQLite.pm6
98 @$(TEST_F) $(LIBUSER)/DBDish/SQLite.pir
99 @$(RM_F) $(LIBUSER)/DBDish/SQLite.pir
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
100
101 clean:
102 @# delete compiled files
842327f4 »
2012-04-27 rename to DBIish
103 $(RM_F) lib/*.pir lib/DBDish/*.pir
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
104 @# delete all editor backup files
842327f4 »
2012-04-27 rename to DBIish
105 $(RM_F) *~ lib/*~ t/*~ lib/DBDish/*~
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
106
107 help:
108 @echo
842327f4 »
2012-04-27 rename to DBIish
109 @echo "You can make the following in 'DBIish':"
e9ee1a61 »
2010-05-16 very incomplete initial work with zavolaj and mysql client
110 @echo "clean removes compiled, temporary and backup files"
111 @echo "test runs a local test suite"
112 @echo "install copies .pm and .pir files to system perl6 lib/"
113 @echo " (may require admin or root permission)"
114 @echo "uninstall removes .pm6 and .pir file(s) from system lib/"
115 @echo "install-user copies .pm and .pir files to user perl6 lib/"
116 @echo "uninstall-user removes .pm6 and .pir file(s) from user perl6 lib/"
117
Something went wrong with that request. Please try again.