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 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets by Bill Allombert 2001
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
#export DH_COMPAT=4
# This has to be exported to make some magic below work.
export DH_OPTIONS
docdir=/usr/share/doc
ja=dvi2ps-fontdata-ja
three=dvi2ps-fontdata-three
MAKE=make -f debian/rules
FONTS=$(DESTDIR)/usr/share/texmf/fonts
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
#Architecture
build: build-arch build-indep
build-arch: build-arch-stamp
build-arch-stamp: configure-stamp
# Add here commands to compile the arch part of the package.
#$(MAKE)
touch build-arch-stamp
build-indep: build-indep-stamp
build-indep-stamp: configure-stamp
# Add here commands to compile the indep part of the package.
# $(MAKE)
uudecode -o /dev/stdout debian/ptexfake-tfm.tar.gz.uu | tar xvpfz -
touch build-indep-stamp
clean:
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
# Add here commands to clean up after the build process.
# -$(MAKE) clean
-rm -rf ptexfake-tfm
dh_clean
install: install-indep install-arch
install-indep:
dh_testdir
dh_testroot
dh_clean -k -i
dh_installdirs -i
# Add here commands to install the indep part of the package into
chmod +x debian/install-jdoc
debian/install-jdoc README debian/$(ja)$(docdir)/$(ja)/README.ja
debian/install-jdoc vfdata.doc debian/$(ja)$(docdir)/$(ja)
debian/install-jdoc 3/README debian/$(ja)$(docdir)/$(ja)/README.three
install -m 644 prninfo.ps debian/$(ja)$(docdir)/$(ja)
$(MAKE) install-ja DESTDIR=`pwd`/debian/$(ja)
$(MAKE) install-a2n DESTDIR=`pwd`/debian/dvi2ps-fontdata-a2n
$(MAKE) install-n2a DESTDIR=`pwd`/debian/dvi2ps-fontdata-n2a
$(MAKE) install-tbank DESTDIR=`pwd`/debian/dvi2ps-fontdata-tbank
$(MAKE) install-rsp DESTDIR=`pwd`/debian/dvi2ps-fontdata-rsp
$(MAKE) install-three DESTDIR=`pwd`/debian/$(three)
$(MAKE) install-ptexfake DESTDIR=`pwd`/debian/dvi2ps-fontdata-ptexfake
dh_movefiles -i --sourcedir=debian/$(ja)
install-ja:
cd morisawa2; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vfdev/morisawa/ptex/`basename $$i .vf`.jvf ; \
done
cd morisawa2-v; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vfdev/morisawa/ptex/`basename $$i .vf`.jvf ; \
done
# morisawa2-v2h, -vsy, -vsyd
cd morisawa2-v2h; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2mor2-jp/$$i ; \
done
cd morisawa2-vsy; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2mor2-ps/$$i ; \
done
cd morisawa2-vsyd; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2mor2-dir/$$i ; \
done
cd morisawa2-tfm ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/tfm/morisawa/$$i ; \
done
cd morisawa2-v-tfm ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/tfm/morisawa/$$i ; \
done
install-a2n:
cd a2n; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/a2n/$$i ; \
done
install-n2a:
cd n2a; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/n2a/$$i ; \
done
install-tbank:
cd typebank-tfm ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/tfm/jp/$$i ; \
done
cd typebank ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2tbank/$$i ; \
done
# virtical fonts
cd typebank-v-tfm ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/tfm/jp/$$i ; \
done
cd typebank-v ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2tbank/$$i ; \
done
install-rsp:
cd ricohsp-tfm ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/tfm/jp/$$i ; \
done
cd ricohsp ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2rsp/$$i ; \
done
# virtical fonts
cd ricohsp-v-tfm ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/tfm/jp/$$i ; \
done
cd ricohsp-v ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2rsp/$$i ; \
done
install-three:
cd 3-tfm ; \
for i in *.tfm ; do \
install -m 644 $$i $(FONTS)/tfm/jp/$$i ; \
done
cd 3 ; \
for i in *.vf ; do \
install -m 644 $$i $(FONTS)/vf/ptex/a2mor2/$$i ; \
done
# dvi2ps
cp tfm/*.tfm $(FONTS)/tfm/ptex/three
cp dvi2ps/three $(DESTDIR)/etc/texmf/dvi2ps
cp -a dvi2ps/fontsk/*-three $(DESTDIR)/usr/share/texmf/dvi2ps/fontsk
cp dvi2ps/styles/three.sty $(DESTDIR)/usr/share/texmf/ptex/platex/misc
# dvips
cp debian/three.map $(DESTDIR)/etc/texmf/dvipsj
cp dvi2ps/styles/three.dtx dvi2ps/styles/three.ins \
debian/$(three)/usr/share/texmf/source/platex/three
install-ptexfake:
cd ptexfake-tfm ; \
for i in * ; do \
install -m 644 $$i $(FONTS)/tfm/ptex/$$i ; \
done
install-arch:
dh_testdir
dh_testroot
# dh_clean -k -a
# dh_installdirs -a
# Add here commands to install the arch part of the package into
# debian/dvi2ps-fontdata-ja.
#$(MAKE) install DESTDIR=$(CURDIR)/debian/dvi2ps-fontdata
# dh_movefiles -a
# Must not depend on anything. This is to be called by
# binary-arch/binary-multi
# in another 'make' thread.
binary-common:
dh_testdir
dh_testroot
dh_link
# dh_installdebconf
dh_installdocs
# dh_installexamples
# dh_installmenu
# dh_installemacsen
# dh_installpam
# dh_installinit
# dh_installcron
# dh_installmanpages
# dh_installinfo
# dh_undocumented
dh_installchangelogs
# dh_link
# dh_strip
dh_compress
dh_fixperms
# You may want to make some executables suid here.
# dh_suidregister
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture independant packages using the common target.
binary-indep: build-indep install-indep
make -f debian/rules DH_OPTIONS=-i binary-common
# Build architecture dependant packages using the common target.
binary-arch: build-arch install-arch
#$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
|