source: project/srfi-29/debian/rules @ 8163

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

A final update.

File size: 1.5 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
13EGG_TREE ?= /home/chicken/chicken-eggs
14
15BINARY_VERSION=$(shell basename `chicken-setup -R`)
16EGG_TMPDIR=debian/tmp/lib/chicken/$(BINARY_VERSION)
17CHICKEN_EGG=srfi-29
18CHICKEN_EGG_DEPS=misc-extn locale lookup-table miscmacros
19
20
21build: build-stamp
22build-stamp:
23        dh_testdir
24        mkdir -p $(CURDIR)/debian/tmp
25        chicken-setup -dont-ask -destdir $(CURDIR)/debian/tmp -local $(EGG_TREE) $(CHICKEN_EGG)
26        touch build-stamp
27
28clean:
29        dh_testdir
30        dh_testroot
31        rm -f build-stamp
32        rm -rf debian/tmp
33        rm -rf *.egg *.egg.dir
34        dh_clean
35
36install: build
37        dh_testdir
38        dh_testroot
39        dh_installdirs
40
41binary-common:
42        dh_testdir
43        dh_testroot
44        dh_install $(EGG_TMPDIR)/{*.so,*.scm,*.setup-info,*.exports} var/lib/chicken/$(BINARY_VERSION)
45        dh_installdocs $(EGG_TMPDIR)/*.html
46        dh_installdirs var/lib/chicken/$(BINARY_VERSION)/srfi-29-bundles
47#       dh_installman
48#       dh_installchangelogs ChangeLog
49#       dh_link
50ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
51        dh_strip
52endif   
53        dh_compress
54        dh_fixperms
55        dh_makeshlibs -V
56        dh_installdeb
57        dh_shlibdeps
58        dh_gencontrol
59        dh_md5sums
60        dh_builddeb
61
62binary-indep: build install
63
64binary-arch: build install
65        $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
66
67binary-%: build install
68        make -f debian/rules binary-common DH_OPTIONS=-p$*
69
70binary: binary-indep binary-arch
71.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.