pkg-aodbc := cl-sql-aodbc
pkg-odbc := cl-sql-odbc
pkg-sqlite := cl-sql-sqlite
-pkg-sqlite := cl-sql-sqlite3
+pkg-sqlite3 := cl-sql-sqlite3
pkg-oracle := cl-sql-oracle
pkg-tests := cl-sql-tests
all-pkgs := $(pkg) $(pkg-uffi) $(pkg-mysql) $(pkg-pg) $(pkg-pg-socket) $(pkg-aodbc) $(pkg-odbc) $(pkg-sqlite) $(pkg-sqlite3) $(pkg-tests)
srcs-aodbc := $(wildcard db-aodbc/*.lisp)
srcs-odbc := $(wildcard db-odbc/*.lisp)
srcs-sqlite := $(wildcard db-sqlite/*.lisp)
-srcs-sqlite := $(wildcard db-sqlite3/*.lisp)
+srcs-sqlite3 := $(wildcard db-sqlite3/*.lisp)
srcs-oracle := $(wildcard db-oracle/*.lisp)
srcs-tests := $(wildcard tests/*.lisp)
configure: configure-stamp
configure-stamp:
dh_testdir
- # Add here commands to configure the package.
touch configure-stamp
build-arch: configure-stamp build-arch-stamp
build-arch-stamp:
dh_testdir
- # Add here commands to compile the package.
$(MAKE)
touch build-arch-stamp
build-indep: configure-stamp build-indep-stamp
build-indep-stamp:
dh_testdir
- # Add here command to compile/build the arch indep package.
- # It's ok not to do anything here, if you don't need to build
- # anything for this package.
- #/usr/bin/docbook-to-man debian/#PACKAGE#.sgml > #PACKAGE#.1
touch build-indep-stamp
build: build-arch build-indep
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
- # Add here commands to clean up after the build process.
- -$(MAKE) clean
+ [ ! -f Makefile ] || $(MAKE) distclean
find . -type f -and -name \*~ -or -name .\*~ -exec rm -f {} \;
dh_clean
dh_clean -k
dh_installdirs
- # Add here commands to install the package into debian/uffi.
dh_installdirs --all $(clc-systems) $(clc-source)
- dh_installdirs -p $(pkg) $(lispdir-sql)
+ dh_installdirs -p $(pkg) $(lispdir-sql) etc
dh_installdirs -p $(pkg-uffi) $(lispdir-uffi) $(sodir-uffi)
dh_installdirs -p $(pkg-pg) $(lispdir-pg)
dh_installdirs -p $(pkg-pg-socket) $(lispdir-pg-socket)
# Main package
dh_install -p $(pkg) $(srcs) $(lispdir-sql)
dh_install -p $(pkg) clsql.asd $(clc-clsql)
+ dh_install -p $(pkg) debian/clsql-init.lisp etc
# UFFI
dh_install -p $(pkg-uffi) $(srcs-uffi) $(lispdir-uffi)
done
-# Build architecture-independent files here.
-# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_link -i
dh_compress -i
dh_fixperms -i
+# dh_makeshlibs -i
dh_installdeb -i
# dh_perl -i
dh_gencontrol -i
dh_link -a
dh_compress -a
dh_fixperms -a
-# dh_makeshlibs -a
+# dh_makeslhibs -a
dh_installdeb -a
# dh_perl -a
dh_shlibdeps -a
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
-