UPSTREAM_VER := $(shell sed -n -e "s/${pkg} (\(.*\)-[0-9A-Za-z\.]).*/\1/p" < debian/changelog |head -1)
## Lisp sources
-srcs := $(wildcard sql/*.lisp) clsql.asd
+srcs-sql := $(wildcard sql/*.lisp)
srcs-uffi := $(wildcard uffi/*.lisp) $(wildcard uffi/*.c)
srcs-uffi-so = $(wildcard uffi/*.so)
srcs-mysql := $(wildcard db-mysql/*.lisp) $(wildcard db-mysql/*.c)
build-arch: build-arch-stamp
build-arch-stamp:
dh_testdir
+ # env LDFLAGS=`pkg-buildflags --get LDFLAGS` $(MAKE)
$(MAKE)
touch build-arch-stamp
dh_prep
dh_installdirs
- dh_installdirs --all $(clc-systems) $(clc-source)
+ dh_installdirs --all $(clc-source)
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-tests) $(lispdir-tests)
# Main package
- dh_install -p $(pkg) $(srcs) $(lispdir-sql)
+ dh_install -p $(pkg) $(srcs-sql) $(lispdir-sql)
dh_install -p $(pkg) clsql.asd $(clc-clsql)
dh_install -p $(pkg) debian/clsql-init.lisp etc