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
|
#!/usr/bin/make -f
# debian/rules for tn5250.
# Copyright 1999 - 2001 Carey Evans, GPL 2 or later.
# Based on debhelper example by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=3
builddir := $(shell pwd)
pkgdir := $(builddir)/debian/tn5250
configure-stamp:
dh_testdir
./configure --prefix=/usr --sysconfdir=/etc \
--disable-shared --disable-os-dir
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
$(RM) configure-stamp build-stamp install-stamp
-$(MAKE) distclean
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Install everything, then remove what we don't want: development
# files that aren't needed by any other package yet.
# Also manpages to let debhelper put them in /usr/share/man/,
# and binaries which I don't have any idea about, or docs for.
$(MAKE) prefix=$(pkgdir)/usr install
$(RM) -r $(pkgdir)/usr/lib $(pkgdir)/usr/include $(pkgdir)/usr/man \
$(pkgdir)/usr/share/aclocal \
$(pkgdir)/usr/bin/tn5250-config $(pkgdir)/usr/bin/tn5250d \
$(pkgdir)/usr/bin/tn3270d
tic -o$(pkgdir)/usr/share/terminfo debian/linux-5250.terminfo
install -c -m 0644 debian/*.map debian/XTerm $(pkgdir)/usr/share/tn5250
install -c -m 0644 *.xpm *.png $(pkgdir)/usr/share/pixmaps
touch install-stamp
binary-indep: build install
# Do nothing.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
install -c -m 0644 linux/README \
$(pkgdir)/usr/share/doc/tn5250/README.Linux
dh_installmenu
dh_installman
dh_installchangelogs ChangeLog
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build install clean binary-indep binary-arch binary
|