1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/usr/bin/make -f
include /usr/share/ruby-pkg-tools/1/rules/uploaders.mk
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build-1.8: build-1.8-stamp
build-1.8-stamp:
dh_testdir
ruby1.8 extconf.rb --enable-dlopen
$(MAKE)
$(MAKE) install DESTDIR=$(CURDIR)/debian/libodbc-ruby1.8 \
sitedir='$$(prefix)/lib/ruby'
$(MAKE) distclean
touch build-1.8-stamp
build-1.8-UTF8: build-1.8-UTF8-stamp
build-1.8-UTF8-stamp:
dh_testdir
ruby1.8 -Cutf8 extconf.rb --enable-dlopen
$(MAKE) -C utf8
$(MAKE) -C utf8 install DESTDIR=$(CURDIR)/debian/libodbc-ruby1.8 \
sitedir='$$(prefix)/lib/ruby'
$(MAKE) -C utf8 distclean
touch build-1.8-UTF8-stamp
clean::
dh_testdir
dh_testroot
# Add here commands to clean up after the build process.
rm -f build-*-stamp
-$(MAKE) distclean
-$(MAKE) -C utf8 distclean
dh_clean
build: build-1.8 build-1.8-UTF8
install: build
dh_testdir
dh_testroot
binary-indep:
# nothing to do
# Build architecture-dependent files here.
binary-arch: install
dh_testdir -a
dh_testroot -a
dh_installdocs -a
dh_installexamples -a
dh_installchangelogs -a
dh_link -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_makeshlibs -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
binary: binary-arch binary-indep
.PHONY: build-1.8 build-1.8-UTF8 clean binary-arch binary-indep binary build install
|