source: libcaca/trunk/debian/rules @ 208

Last change on this file since 208 was 208, checked in by Sam Hocevar, 18 years ago
  • debian/: + Wrote the changelog for the Debian release. + Wrote a copyright file.
  • doc/: + Wrote manpages for caca-demo and caca-spritedit.
  • examples/caca.txt: + Centered the sprite handle. + Added a second frame to the sprite.
  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/usr/bin/make -f
2
3#export DH_VERBOSE=1
4export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
5export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
6
7# FOR AUTOCONF 2.52 AND NEWER ONLY
8ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
9  confflags += --build $(DEB_HOST_GNU_TYPE)
10else
11  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
12endif
13
14confflags += --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
15
16configure: configure-stamp
17configure-stamp:
18        dh_testdir
19        ./configure $(confflags) --prefix=/usr
20        touch configure-stamp
21
22build: configure-stamp build-stamp
23build-stamp:
24        dh_testdir
25        $(MAKE)
26        touch build-stamp
27
28clean:
29        dh_testdir
30        dh_testroot
31        rm -f build-stamp configure-stamp
32        -$(MAKE) distclean
33        dh_clean
34
35install: build
36        dh_testdir
37        dh_testroot
38        dh_clean -k
39        dh_installdirs
40        DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr
41
42# Build architecture-independent files here.
43binary-indep: build install
44# We have nothing to do by default.
45
46# Build architecture-dependent files here.
47binary-arch: build install
48#       dh_testversion
49        dh_testdir
50        dh_testroot
51#       dh_installdebconf       
52        dh_installdocs README BUGS TODO AUTHORS NEWS
53#       dh_installexamples
54        dh_installmenu
55#       dh_installemacsen
56#       dh_installpam
57#       dh_installinit
58        dh_installcron
59#       dh_installmanpages
60        dh_installinfo
61#       dh_undocumented
62        dh_installchangelogs
63        dh_link
64        dh_strip
65        dh_compress
66        dh_fixperms
67#       dh_makeshlibs
68        dh_installdeb
69#       dh_perl
70        dh_shlibdeps
71        dh_gencontrol
72        dh_md5sums
73        dh_builddeb
74
75binary: binary-indep binary-arch
76.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.