source: project/release/3/cairo/debian/rules @ 8767

Last change on this file since 8767 was 8767, checked in by Ivan Raikov, 12 years ago

Updated debian files in release 3 branch.

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