source: project/sqlite3/debian/rules @ 8086

Last change on this file since 8086 was 8086, checked in by Ivan Raikov, 13 years ago

Added Debian package information.

File size: 1.4 KB
Line 
1#!/usr/bin/make -f
2export DH_COMPAT=4
3
4BUILD_ARCH = $(shell dpkg --print-installation-architecture)
5
6CFLAGS= -g
7ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
8     CFLAGS += -O0
9        else
10     CFLAGS += -O2 -fno-strict-aliasing
11endif
12
13BINARY_VERSION=$(shell basename `chicken-setup -R`)
14
15CHICKEN_EGG=sqlite3
16
17build: build-stamp
18build-stamp:
19        dh_testdir
20        mkdir -p $(CURDIR)/debian/tmp
21        chicken-setup -dont-ask -repository $(CURDIR)/debian/tmp -local $(CURDIR) $(CHICKEN_EGG)
22        touch build-stamp
23
24clean:
25        dh_testdir
26        dh_testroot
27        rm -f build-stamp
28        rm -rf debian/tmp
29        rm -rf *.egg *.egg.dir
30        dh_clean
31
32install: build
33        dh_testdir
34        dh_testroot
35        dh_installdirs
36
37binary-common:
38        dh_testdir
39        dh_testroot
40        dh_install debian/tmp/$(CHICKEN_EGG){*.so,*.scm,*.setup-info} var/lib/chicken/$(BINARY_VERSION)
41        dh_installdocs debian/tmp/{$(CHICKEN_EGG)*.html,index.html} 
42#       dh_installman
43#       dh_installchangelogs ChangeLog
44#       dh_link
45ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
46        dh_strip
47endif   
48        dh_compress
49        dh_fixperms
50        dh_makeshlibs -V
51        dh_installdeb
52        dh_shlibdeps
53        dh_gencontrol
54        dh_md5sums
55        dh_builddeb
56
57binary-indep: build install
58
59binary-arch: build install
60        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
61
62binary-%: build install
63        make -f debian/rules binary-common DH_OPTIONS=-p$*
64
65binary: binary-indep binary-arch
66.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.