Permalink
Browse files

build SQLite by default

  • Loading branch information...
1 parent f8dd394 commit b1d068fdf7e879b4e7ba8fd53b1ca3b709d6b494 @moritz moritz committed Apr 22, 2012
Showing with 17 additions and 4 deletions.
  1. +17 −4 Makefile
View
@@ -28,18 +28,21 @@ lib/MiniDBD/Pg.pir: lib/MiniDBD/Pg.pm6 lib/MiniDBD.pir
lib/MiniDBD/PgPir.pir: lib/MiniDBD/PgPir.pm6 lib/MiniDBD.pir
export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBD/PgPir.pir lib/MiniDBD/PgPir.pm6
-lib/MiniDBI.pir: lib/MiniDBI.pm6 lib/MiniDBD/CSV.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir
+lib/MiniDBD/SQLite.pir: lib/MiniDBD/SQLite.pm6 lib/MiniDBD.pir
+ export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBD/SQLite.pir lib/MiniDBD/SQLite.pm6
+
+lib/MiniDBI.pir: lib/MiniDBI.pm6 lib/MiniDBD/CSV.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
export PERL6LIB=lib; $(PERL6_EXE) --target=pir --output=lib/MiniDBI.pir lib/MiniDBI.pm6
-test: lib/MiniDBI.pir lib/MiniDBD/CSV.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir
+test: lib/MiniDBI.pir lib/MiniDBD/CSV.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
@#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/10-mysql.t
@#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/20-CSV-common.t
@#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/25-mysql-common.t
@#export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/30-pgpir.t
export PERL6LIB=lib; prove --exec $(PERL6_EXE) t/
# standard install is to the shared system wide directory
-install: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir
+install: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
@echo "--> $(LIBSYSTEM)"
@$(CP) lib/MiniDBI.pm6 lib/MiniDBI.pir $(LIBSYSTEM)
@$(CP) lib/MiniDBD.pm6 lib/MiniDBD.pir $(LIBSYSTEM)
@@ -48,9 +51,10 @@ install: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir
@$(CP) lib/MiniDBD/mysql.pm6 lib/MiniDBD/mysql.pir $(LIBSYSTEM)/MiniDBD
@$(CP) lib/MiniDBD/PgPir.pm6 lib/MiniDBD/PgPir.pir $(LIBSYSTEM)/MiniDBD
@$(CP) lib/MiniDBD/Pg.pm6 lib/MiniDBD/Pg.pir $(LIBSYSTEM)/MiniDBD
+ @$(CP) lib/MiniDBD/SQLite.pm6 lib/MiniDBD/SQLite.pir $(LIBSYSTEM)/MiniDBD
# if user has no permission to install globally, try a personal directory
-install-user: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir
+install-user: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/PgPir.pir lib/MiniDBD/Pg.pir lib/MiniDBD/SQLite.pir
@echo "--> $(LIBUSER)"
@$(CP) lib/MiniDBI.pm6 lib/MiniDBI.pir $(LIBUSER)
@$(CP) lib/MiniDBD.pm6 lib/MiniDBD.pir $(LIBUSER)
@@ -59,6 +63,7 @@ install-user: lib/MiniDBI.pir lib/MiniDBD.pir lib/MiniDBD/mysql.pir lib/MiniDBD/
@$(CP) lib/MiniDBD/mysql.pm6 lib/MiniDBD/mysql.pir $(LIBUSER)/MiniDBD
@$(CP) lib/MiniDBD/PgPir.pm6 lib/MiniDBD/PgPir.pir $(LIBUSER)/MiniDBD
@$(CP) lib/MiniDBD/Pg.pm6 lib/MiniDBD/Pg.pir $(LIBUSER)/MiniDBD
+ @$(CP) lib/MiniDBD/SQLite.pm6 lib/MiniDBD/SQLite.pir $(LIBUSER)/MiniDBD
# Uninstall from the shared system wide directory.
# This might leave an empty MiniDBD subdirectory behind.
@@ -84,6 +89,10 @@ uninstall:
@$(RM_F) $(LIBSYSTEM)/MiniDBD/Pg.pm6
@$(TEST_F) $(LIBSYSTEM)/MiniDBD/Pg.pir
@$(RM_F) $(LIBSYSTEM)/MiniDBD/Pg.pir
+ @$(TEST_F) $(LIBSYSTEM)/MiniDBD/SQLite.pm6
+ @$(RM_F) $(LIBSYSTEM)/MiniDBD/SQLite.pm6
+ @$(TEST_F) $(LIBSYSTEM)/MiniDBD/SQLite.pir
+ @$(RM_F) $(LIBSYSTEM)/MiniDBD/SQLite.pir
# Uninstall from the user's own Perl 6 directory.
# This might leave an empty MiniDBD subdirectory behind.
@@ -109,6 +118,10 @@ uninstall-user:
@$(RM_F) $(LIBUSER)/MiniDBD/Pg.pm6
@$(TEST_F) $(LIBUSER)/MiniDBD/Pg.pir
@$(RM_F) $(LIBUSER)/MiniDBD/Pg.pir
+ @$(TEST_F) $(LIBUSER)/MiniDBD/SQLite.pm6
+ @$(RM_F) $(LIBUSER)/MiniDBD/SQLite.pm6
+ @$(TEST_F) $(LIBUSER)/MiniDBD/SQLite.pir
+ @$(RM_F) $(LIBUSER)/MiniDBD/SQLite.pir
clean:
@# delete compiled files

0 comments on commit b1d068f

Please sign in to comment.