1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--with-tclinclude=/usr/include/tcl8.4 --with-tcllib=/usr/lib/tcl8.4
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
# We don't need to make the whole world--gcvs normally includes
# a whole distribution of command-line cvs... So here we just
# concentrate on making the gui part.
# cd common; $(MAKE) libcommon.a
# cd cvstree; $(MAKE)
# cd rf; $(MAKE)
# cd gcvs; $(MAKE)
# That sadly doesn't work because gcvs has custom versions of the command line
# cvs programs with new options. So we really need them. However, we can't have them
# overriding the standard cvs binaries so we stick them in /use/lib/gcvs. Then we
# have to tell gcvs to run the ones out of /usr/lib/gcvs instead of the normal ones,
# otherwise nothing will work.
#
# bindir is used to set the EXECLIB define, which UCvsApp.cpp uses to find
# the correct cvs executable.
$(MAKE) bindir=/usr/lib/gcvs/bin
#/usr/bin/docbook-to-man debian/gcvs.sgml > gcvs.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
rm -f cvsunix/windows-NT/SCC/Makefile
dh_clean
install: build short-circuit-install
short-circuit-install:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# $(MAKE) install prefix=$(CURDIR)/debian/gcvs/usr
# Oh if that would only work. But gcvs wants to install its custom version
# of the CVS binaries into bin. So I install each piece separately so I can
# fine tune where everything goes according to debain policy. Then I copy over
# the docs into share/doc/gcvs because the gcvs makefile doesn't install those.
# Then I install the lintian override file.
cd cvstree; $(MAKE) install prefix=$(CURDIR)/debian/gcvs/usr/lib/gcvs
cd cvsunix/src; $(MAKE) install prefix=$(CURDIR)/debian/gcvs/usr/lib/gcvs
cd gcvs; $(MAKE) install prefix=$(CURDIR)/debian/gcvs/usr
cd Macros; $(MAKE) install prefix=$(CURDIR)/debian/gcvs/usr
cp -r GuiDoc $(CURDIR)/debian/gcvs/usr/share/doc/gcvs
rm -f $(CURDIR)/debian/gcvs/usr/share/doc/gcvs/GuiDoc/.cvsignore
rm -f $(CURDIR)/debian/gcvs/usr/share/doc/gcvs/GuiDoc/Makefile*
rm -f $(CURDIR)/debian/gcvs/usr/lib/gcvs/bin/cvsbug
install --mode=644 -D debian/lintian-overrides $(CURDIR)/debian/gcvs/usr/share/lintian/overrides/gcvs
cp debian/gcvs-32x32.xpm $(CURDIR)/debian/gcvs/usr/share/pixmaps
cp debian/gcvs-32x32-ugly-but-policy.xpm $(CURDIR)/debian/gcvs/usr/share/pixmaps
install -d $(CURDIR)/debian/gcvs/usr/share/applications
install --mode=644 debian/gcvs.desktop $(CURDIR)/debian/gcvs/usr/share/applications
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install short-circuit-package
short-circuit-package:
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
# Skip the info because, even though it has info pages, they are for straight command
# line cvs and will therefore conflict with the regular cvs package. They aren't
# applicable to gcvs.
# dh_installinfo
# dh_undocumented
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure short-circuit-install short-circuit-package
|