source: libcaca/trunk/debian/rules @ 346

Last change on this file since 346 was 346, checked in by Sam Hocevar, 17 years ago
  • configure.ac: + Added --disable-doc to let the user not build documentation.
  • build-win32: + Do not build documentation.
  • Property svn:executable set to *
File size: 3.2 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
44        DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr
45
46        mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin
47        mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin
48        mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
49        mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
50        mv debian/libcaca-dev/usr/bin/cacamoir debian/caca-utils/usr/bin
51        mv debian/libcaca-dev/usr/bin/cacaplas debian/caca-utils/usr/bin
52
53        mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
54        mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \
55           debian/caca-utils/usr/share/man/man1/
56        mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 \
57           debian/caca-utils/usr/share/man/man1/
58        mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
59           debian/caca-utils/usr/share/man/man1/
60        mv debian/libcaca-dev/usr/share/man/man1/cacamoir.1 \
61           debian/caca-utils/usr/share/man/man1/
62        mv debian/libcaca-dev/usr/share/man/man1/cacaplas.1 \
63           debian/caca-utils/usr/share/man/man1/
64        mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
65           debian/caca-utils/usr/share/man/man1/
66
67        cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
68           debian/libcaca-dev/usr/share/doc/libcaca-dev/BUGS \
69           debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
70           debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
71           debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
72           debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
73           debian/caca-utils/usr/share/doc/caca-utils/
74
75# Build architecture-independent files here.
76binary-indep: build install
77# We have nothing to do by default.
78
79# Build architecture-dependent files here.
80binary-arch: build install
81#       dh_testversion
82        dh_testdir
83        dh_testroot
84#       dh_installdebconf       
85        dh_installdocs
86#       dh_installexamples
87        dh_installmenu
88#       dh_installemacsen
89#       dh_installpam
90#       dh_installinit
91        dh_installcron
92#       dh_installmanpages
93        dh_installinfo
94        dh_installmime
95#       dh_undocumented
96        dh_installchangelogs ChangeLog
97        dh_link
98        dh_strip
99        dh_compress
100        dh_fixperms
101#       dh_makeshlibs
102        dh_installdeb
103#       dh_perl
104        dh_shlibdeps
105        dh_gencontrol
106        dh_md5sums
107        dh_builddeb
108
109binary: binary-indep binary-arch
110.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.