source: libcaca/trunk/debian/rules @ 228

Last change on this file since 228 was 228, checked in by Sam Hocevar, 17 years ago
  • debian/control: + Removed slang1-dev dependency in caca-utils.
  • debian/caca-utils.mime debian/rules: + Added a MIME file with low priority. + Added call to dh_installmime.
  • Property svn:executable set to *
File size: 2.3 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 -plibcaca-dev
40        dh_installdirs usr/bin usr/share/doc usr/share/man/man1 -pcaca-utils
41
42        DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr
43
44        mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin
45        mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
46        mv debian/libcaca-dev/usr/bin/caca-spritedit debian/caca-utils/usr/bin
47
48        mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
49        mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 debian/caca-utils/usr/share/man/man1
50        mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 debian/caca-utils/usr/share/man/man1
51        mv debian/libcaca-dev/usr/share/man/man1/caca-spritedit.1 debian/caca-utils/usr/share/man/man1
52
53# Build architecture-independent files here.
54binary-indep: build install
55# We have nothing to do by default.
56
57# Build architecture-dependent files here.
58binary-arch: build install
59#       dh_testversion
60        dh_testdir
61        dh_testroot
62#       dh_installdebconf       
63        dh_installdocs README BUGS TODO AUTHORS NEWS NOTES -pcaca-utils
64        dh_installdocs README BUGS TODO AUTHORS NEWS NOTES -plibcaca-dev
65#       dh_installexamples
66        dh_installmenu
67#       dh_installemacsen
68#       dh_installpam
69#       dh_installinit
70        dh_installcron
71#       dh_installmanpages
72        dh_installinfo
73        dh_installmime
74#       dh_undocumented
75        dh_installchangelogs ChangeLog
76        dh_link
77        dh_strip
78        dh_compress
79        dh_fixperms
80#       dh_makeshlibs
81        dh_installdeb
82#       dh_perl
83        dh_shlibdeps
84        dh_gencontrol
85        dh_md5sums
86        dh_builddeb
87
88binary: binary-indep binary-arch
89.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.