source: libcaca/trunk/debian/rules @ 850

Last change on this file since 850 was 850, checked in by Sam Hocevar, 15 years ago
  • Updated Debian build rules.
  • Property svn:executable set to *
File size: 1.9 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
15confflags += --enable-ncurses --enable-slang --enable-x11 \
16             --enable-imlib2 --enable-doc
17
18configure: configure-stamp
19configure-stamp:
20        dh_testdir
21        ./configure $(confflags) --prefix=/usr
22        touch configure-stamp
23
24build: configure-stamp build-stamp
25build-stamp:
26        dh_testdir
27        $(MAKE)
28        touch build-stamp
29
30clean:
31        dh_testdir
32        dh_testroot
33        rm -f build-stamp configure-stamp
34        -$(MAKE) distclean
35        dh_clean
36
37install: build
38        dh_testdir
39        dh_testroot
40        dh_clean -k
41        dh_installdirs -plibcaca-dev
42        dh_installdirs usr/bin usr/share/doc/caca-utils usr/share/man/man1 -pcaca-utils
43        dh_installdirs usr/lib -plibcucul0
44        dh_installdirs usr/lib -plibcaca0
45        $(MAKE) install DESTDIR=`pwd`/debian/tmp
46        dh_install --sourcedir=debian/tmp --list-missing
47
48# Build architecture-independent files here.
49binary-indep: build install
50# We have nothing to do by default.
51
52# Build architecture-dependent files here.
53binary-arch: build install
54#       dh_testversion
55        dh_testdir
56        dh_testroot
57#       dh_installdebconf       
58        dh_installdocs -A README TODO AUTHORS NEWS NOTES THANKS
59#       dh_installexamples
60        dh_installmenu
61#       dh_installemacsen
62#       dh_installpam
63#       dh_installinit
64        dh_installcron
65#       dh_installmanpages
66        dh_installinfo
67        dh_installmime
68#       dh_undocumented
69        dh_installchangelogs ChangeLog
70        dh_link
71        dh_strip
72        dh_compress
73        dh_fixperms
74        dh_makeshlibs
75        dh_installdeb
76#       dh_perl
77        dh_shlibdeps
78        dh_gencontrol
79        dh_md5sums
80        dh_builddeb
81
82binary: binary-indep binary-arch
83.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.