source: libcaca/trunk/debian/rules @ 340

Last change on this file since 340 was 340, checked in by Sam Hocevar, 18 years ago
  • examples/cacamoir.c: + Renamed cacacirc to cacamoir.
  • libcaca.spec debian/ doc/: + Added cacamoir to the distributed files.
  • 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 --enable-imlib2
16
17configure: configure-stamp
18configure-stamp:
19        dh_testdir
20        ./configure $(confflags) --prefix=/usr
21        touch configure-stamp
22
23build: configure-stamp build-stamp
24build-stamp:
25        dh_testdir
26        $(MAKE)
27        touch build-stamp
28
29clean:
30        dh_testdir
31        dh_testroot
32        rm -f build-stamp configure-stamp
33        -$(MAKE) distclean
34        dh_clean
35
36install: build
37        dh_testdir
38        dh_testroot
39        dh_clean -k
40        dh_installdirs -plibcaca-dev
41        dh_installdirs usr/bin usr/share/doc/caca-utils usr/share/man/man1 -pcaca-utils
42
43        DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr
44
45        mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin
46        mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin
47        mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
48        mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
49        mv debian/libcaca-dev/usr/bin/cacamoir debian/caca-utils/usr/bin
50        mv debian/libcaca-dev/usr/bin/cacaplas debian/caca-utils/usr/bin
51
52        mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
53        mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \
54           debian/caca-utils/usr/share/man/man1/
55        mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 \
56           debian/caca-utils/usr/share/man/man1/
57        mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
58           debian/caca-utils/usr/share/man/man1/
59        mv debian/libcaca-dev/usr/share/man/man1/cacamoir.1 \
60           debian/caca-utils/usr/share/man/man1/
61        mv debian/libcaca-dev/usr/share/man/man1/cacaplas.1 \
62           debian/caca-utils/usr/share/man/man1/
63        mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
64           debian/caca-utils/usr/share/man/man1/
65
66        cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
67           debian/libcaca-dev/usr/share/doc/libcaca-dev/BUGS \
68           debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
69           debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
70           debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
71           debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
72           debian/caca-utils/usr/share/doc/caca-utils/
73
74# Build architecture-independent files here.
75binary-indep: build install
76# We have nothing to do by default.
77
78# Build architecture-dependent files here.
79binary-arch: build install
80#       dh_testversion
81        dh_testdir
82        dh_testroot
83#       dh_installdebconf       
84        dh_installdocs
85#       dh_installexamples
86        dh_installmenu
87#       dh_installemacsen
88#       dh_installpam
89#       dh_installinit
90        dh_installcron
91#       dh_installmanpages
92        dh_installinfo
93        dh_installmime
94#       dh_undocumented
95        dh_installchangelogs ChangeLog
96        dh_link
97        dh_strip
98        dh_compress
99        dh_fixperms
100#       dh_makeshlibs
101        dh_installdeb
102#       dh_perl
103        dh_shlibdeps
104        dh_gencontrol
105        dh_md5sums
106        dh_builddeb
107
108binary: binary-indep binary-arch
109.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.