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 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
|
#!/usr/bin/make -f
# Generated automatically from debian/packages
# by yada v0.14, of Tue, 6 May 2003
buildarch := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
ifneq "$(buildarch)" "sh4eb"
ifneq "$(buildarch)" "sh4"
ifneq "$(buildarch)" "alpha"
ifneq "$(buildarch)" "ia64"
ifneq "$(buildarch)" "mipsel"
ifneq "$(buildarch)" "sparc"
ifneq "$(buildarch)" "arm"
ifneq "$(buildarch)" "mips"
ifneq "$(buildarch)" "m68k"
ifneq "$(buildarch)" "s390"
ifneq "$(buildarch)" "sh3"
ifneq "$(buildarch)" "s390x"
ifneq "$(buildarch)" "hppa"
ifneq "$(buildarch)" "powerpc"
ifneq "$(buildarch)" "sh3eb"
ifneq "$(buildarch)" "i386"
buildarch := any
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_BUILD_GNU_CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
VERSION:=$(shell LC_ALL=C dpkg-parsechangelog | sed -ne 's/^Version: *\([^2]*\)/\1/p')
SHELL=/bin/bash
.PHONY: default
default:
@echo "Specify a target:"; \
echo " build compile the package"; \
echo " build-arch compile the architecture-dependent package"; \
echo " build-indep compile the architecture-independent package"; \
echo " binary make all binary packages"; \
echo " binary-arch make all architecture-dependent binary packages"; \
echo " binary-indep make all architecture-independent binary packages"; \
echo " clean clean up the source package"; \
echo; \
echo " clean-install-tree clean up only under debian/"; \
echo
# Build the package and prepare the install tree
.PHONY: build-only build
build-only: debian/build-stamp
build: chmod-yada build-only
.PHONY: build-arch-only build-arch
build-arch-only: debian/build-arch-stamp
build-arch: chmod-yada build-arch-only
.PHONY: build-indep-only build-indep
build-indep-only: debian/build-indep-stamp
build-indep: chmod-yada build-indep-only
# Make sure these rules and the control file are up-to-date
.PHONY: rules control templates
rules: debian/rules
debian/rules: $(shell which yada) debian/packages-tmp
$(shell which yada) rebuild rules
control: debian/control
debian/control: $(shell which yada) debian/packages-tmp
$(shell which yada) rebuild control
templates: debian/templates
debian/templates: $(shell which yada) debian/packages-tmp
$(shell which yada) rebuild templates
debian/build-stamp: debian/build-arch-stamp debian/build-indep-stamp
@[ -f $(shell which yada) -a -f debian/rules ]
$(shell which yada) patch "debian/patches/*.diff"
@umask 022 \
&& export pwd="$$(pwd)" \
&& export TMPROOT="$$(pwd)/debian/tmp" \
&& export SOURCE="bl" \
&& export VERSION="$(VERSION)" \
&& export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
&& export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
&& export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
&& export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
&& export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
&& export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
echo -E 'CC=$${CC:-gcc}';\
echo -E 'CFLAGS=$${CFLAGS:--Wall -g}';\
echo -E 'LDFLAGS=$$LDFLAGS';\
echo -E 'if [ "$${DEB_BUILD_OPTIONS#*noopt}" != "$$DEB_BUILD_OPTIONS" ]; then';\
echo -E ' CFLAGS="$$CFLAGS -O0"';\
echo -E 'else';\
echo -E ' CFLAGS="$$CFLAGS -O2"';\
echo -E 'fi';\
echo -E 'make CFLAGS="$$CFLAGS" LDFLAGS="$$LDFLAGS" CC="$$CC"') | /bin/sh
touch debian/build-stamp
debian/build-arch-stamp:
@[ -f $(shell which yada) -a -f debian/rules ]
$(shell which yada) patch "debian/patches/*.diff"
touch debian/build-arch-stamp
debian/build-indep-stamp:
@[ -f $(shell which yada) -a -f debian/rules ]
$(shell which yada) patch "debian/patches/*.diff"
touch debian/build-indep-stamp
.PHONY: install-tree
install-tree: chmod-yada install-tree-$(buildarch)
install-tree-sh4eb: \
debian/tmp-bl/DEBIAN/control
install-tree-sh4: \
debian/tmp-bl/DEBIAN/control
install-tree-alpha: \
debian/tmp-bl/DEBIAN/control
install-tree-ia64: \
debian/tmp-bl/DEBIAN/control
install-tree-mipsel: \
debian/tmp-bl/DEBIAN/control
install-tree-sparc: \
debian/tmp-bl/DEBIAN/control
install-tree-arm: \
debian/tmp-bl/DEBIAN/control
install-tree-mips: \
debian/tmp-bl/DEBIAN/control
install-tree-m68k: \
debian/tmp-bl/DEBIAN/control
install-tree-s390: \
debian/tmp-bl/DEBIAN/control
install-tree-sh3: \
debian/tmp-bl/DEBIAN/control
install-tree-s390x: \
debian/tmp-bl/DEBIAN/control
install-tree-hppa: \
debian/tmp-bl/DEBIAN/control
install-tree-powerpc: \
debian/tmp-bl/DEBIAN/control
install-tree-sh3eb: \
debian/tmp-bl/DEBIAN/control
install-tree-i386: \
debian/tmp-bl/DEBIAN/control
install-tree-any:
debian/tmp-bl/DEBIAN/control: debian/build-stamp debian/control
rm -rf debian/tmp-bl
umask 022 && install -d debian/tmp-bl/DEBIAN
install -d debian/tmp-bl/usr/share/doc/bl
umask 022; $(shell which yada) generate copyright \
> debian/tmp-bl/usr/share/doc/bl/copyright
install -m 644 -p debian/changelog \
debian/tmp-bl/usr/share/doc/bl/changelog.Debian
@umask 022 \
&& export pwd="$$(pwd)" \
&& export ROOT="$$(pwd)/debian/tmp-bl" \
&& export TMPROOT="$$(pwd)/debian/tmp" \
&& export CONTROL="$$(pwd)/debian/tmp-bl/DEBIAN" \
&& export PACKAGE="bl" \
&& export SOURCE="bl" \
&& export VERSION="$(VERSION)" \
&& export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
&& export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
&& export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
&& export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
&& export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
&& export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
echo -E 'yada install -bin bl';\
echo -E 'yada install -doc -as changelog CHANGES';\
echo -E 'yada install -man bl.1';\
echo -E 'yada install -conf -subdir default -as bl debian/bl.default') | /bin/sh
@umask 022 \
&& export pwd="$$(pwd)" \
&& export ROOT="$$(pwd)/debian/tmp-bl" \
&& export TMPROOT="$$(pwd)/debian/tmp" \
&& export CONTROL="$$(pwd)/debian/tmp-bl/DEBIAN" \
&& export PACKAGE="bl" \
&& export SOURCE="bl" \
&& export VERSION="$(VERSION)" && (\
echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
echo -E 'yada strip';\
echo -E 'yada shlibdeps') | /bin/sh
$(shell which yada) compress bl
$(shell which yada) generate maintscripts bl
find debian/tmp-bl -type f -print \
| sed -n 's/^debian\/tmp-bl\(\/etc\/.*\)$$/\1/p' \
> debian/tmp-bl/DEBIAN/conffiles
if test ! -s debian/tmp-bl/DEBIAN/conffiles; then rm -f debian/tmp-bl/DEBIAN/conffiles; fi
$(shell which yada) rebuild control
$(shell which yada) generate substvars bl
umask 022 && dpkg-gencontrol -isp -pbl -Pdebian/tmp-bl
# Build package files
.PHONY: binary binary-arch binary-indep
binary: binary-arch binary-indep
binary-arch: chmod-yada binary-arch-$(buildarch)
.PHONY: binary-arch-sh4eb
binary-arch-sh4eb: \
binary-package-bl
.PHONY: binary-arch-sh4
binary-arch-sh4: \
binary-package-bl
.PHONY: binary-arch-alpha
binary-arch-alpha: \
binary-package-bl
.PHONY: binary-arch-ia64
binary-arch-ia64: \
binary-package-bl
.PHONY: binary-arch-mipsel
binary-arch-mipsel: \
binary-package-bl
.PHONY: binary-arch-sparc
binary-arch-sparc: \
binary-package-bl
.PHONY: binary-arch-arm
binary-arch-arm: \
binary-package-bl
.PHONY: binary-arch-mips
binary-arch-mips: \
binary-package-bl
.PHONY: binary-arch-m68k
binary-arch-m68k: \
binary-package-bl
.PHONY: binary-arch-s390
binary-arch-s390: \
binary-package-bl
.PHONY: binary-arch-sh3
binary-arch-sh3: \
binary-package-bl
.PHONY: binary-arch-s390x
binary-arch-s390x: \
binary-package-bl
.PHONY: binary-arch-hppa
binary-arch-hppa: \
binary-package-bl
.PHONY: binary-arch-powerpc
binary-arch-powerpc: \
binary-package-bl
.PHONY: binary-arch-sh3eb
binary-arch-sh3eb: \
binary-package-bl
.PHONY: binary-arch-i386
binary-arch-i386: \
binary-package-bl
.PHONY: binary-arch-any
binary-arch-any:
binary-indep: chmod-yada
.PHONY: binary-package-bl
binary-package-bl: check-root debian/tmp-bl/DEBIAN/control
@[ -f $(shell which yada) -a -f debian/rules ]
chown -R 0.0 debian/tmp-bl
chmod -R u=rwX,go=rX debian/tmp-bl
@if [ -d debian/tmp-bl/usr/doc/bl ]; then \
echo "*** Yada warning: /usr/doc/bl should be /usr/share/doc/bl";\
fi
dpkg-deb --build debian/tmp-bl ..
.PHONY: check-root
check-root:
@[ `id -u` = 0 ] || (echo "You must be root to do this!"; false)
.PHONY: chmod-yada
chmod-yada:
@if [ -f debian/yada -a ! -x debian/yada ]; then \
chmod +x debian/yada; \
fi
debian/packages-tmp: debian/packages
$(shell which yada) rebuild packages
## Clean up afterwards
.PHONY: clean clean-install-tree clean-build
clean: chmod-yada clean-install-tree clean-build debian/control debian/rules
rm -f debian/packages-tmp debian/packages-tmp-new debian/packages-tmp-include
clean-build:
@[ -f $(shell which yada) -a -f debian/rules ]
rm -f debian/build-stamp debian/build-arch-stamp debian/build-indep-stamp
@umask 022 \
&& export pwd="$$(pwd)" \
&& export TMPROOT="$$(pwd)/debian/tmp" \
&& export SOURCE="bl" \
&& export VERSION="$(VERSION)" \
&& export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
&& export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
&& export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
&& export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
&& export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
&& export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
echo -E 'make clean || true') | /bin/sh
$(shell which yada) unpatch
rm -rf debian/tmp
clean-install-tree: chmod-yada debian/rules
@[ -f $(shell which yada) -a -f debian/rules ]
rm -f debian/install-tree-stamp
rm -rf debian/tmp-* debian/files* debian/substvars debian/shlibs.local
|