2 # debian/rules file to build packages from wxWindows CVS source
4 # Sculpted 13/2/2000 by Ron Lee <ron@debian.org> from new and
5 # variously stolen code :-)
6 # (including a debhelper template, GNU copyright 1997 to 1999 by
7 # Joey Hess, and some ideas found in the ncurses rules file that
13 # Change this when the release version changes and
14 # touch control.in to propagate the change.
17 # These are the packages we will build
18 package_gtk_lib
=libwxgtk
$(release
)
19 package_gtk_dev
=libwxgtk
$(release
)-dev
20 package_doc
=libwx
$(release
)-doc
22 # Dirs to put the various builds object files in
23 objdir_gtk_shared
=objs_gtk_sh
24 objdir_gtk_static
=objs_gtk_st
26 objdirs
=$(objdir_gtk_shared
) $(objdir_gtk_static
)
28 build_stamps
=build-gtk-shared-stamp build-gtk-static-stamp build-doc-stamp
31 debian
/control
: debian
/control.in
32 sed
-e
's/=V/$(release)/g' < debian
/control.in
> debian
/control
34 build
: debian
/control
$(build_stamps
)
36 build-gtk-shared-stamp
:
38 mkdir
$(objdir_gtk_shared
)
39 cd
$(objdir_gtk_shared
) \
40 && ..
/configure
--prefix=/usr
--with-gtk \
44 build-gtk-static-stamp
:
46 mkdir
$(objdir_gtk_static
)
47 cd
$(objdir_gtk_static
) \
48 && ..
/configure
--prefix=/usr
--with-gtk
--disable-shared \
52 build-doc-stamp
: build-gtk-shared-stamp
54 cd
$(objdir_gtk_shared
)/utils
/tex2rtf
/src \
57 && .
/tex2rtf ..
/..
/..
/..
/docs
/latex
/wx
/manual.
tex HTML
/wxwin
-twice
-html \
58 && cp ..
/..
/..
/..
/docs
/latex
/wx
/*.gif HTML \
60 && rm -f HTML
/wxwin.con HTML
/wxwin.hh
* HTML
/wxwin.htx HTML
/wxwin.ref
61 rm -rf docs
/wxWindows-manual.html
62 mv
$(objdir_gtk_shared
)/utils
/tex2rtf
/src
/HTML docs
/wxWindows-manual.html
68 rm -rf
$(build_stamps
) $(objdirs
)
69 rm -rf docs
/wxWindows-manual.html
71 rm -f debian
/$(package_gtk_lib
).
*
72 rm -f debian
/$(package_gtk_dev
).
*
73 rm -f debian
/$(package_doc
).
*
76 @for f in dirs docs files postinst
; do \
77 echo
"generating control file $(package_gtk_lib).$$f"; \
78 cp debian
/libwxgtk.
$$f debian
/$(package_gtk_lib
).
$$f; \
80 @for f in dirs docs files
; do \
81 echo
"generating control file $(package_gtk_dev).$$f"; \
82 cp debian
/libwxgtk-dev.
$$f debian
/$(package_gtk_dev
).
$$f; \
84 @for f in dirs docs doc-base
; do \
85 echo
"generating control file $(package_doc).$$f"; \
86 cp debian
/libwx-doc.
$$f debian
/$(package_doc
).
$$f; \
92 cd
$(objdir_gtk_shared
) \
93 && $(MAKE
) install prefix=`pwd`/..
/debian
/tmp
/usr
94 cp
$(objdir_gtk_static
)/lib
/*.a debian
/tmp
/usr
/lib
98 # Build architecture-independent files here.
99 binary-indep
: build
install
102 # Build architecture-dependent files here.
103 binary-arch
: build
install
107 dh_installmanpages
-p
$(package_gtk_dev
) \
125 binary
: binary-indep binary-arch
126 .PHONY
: build
clean binary-indep binary-arch binary
install