File: rules

package info (click to toggle)
tn5250 0.17.3-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,304 kB
  • ctags: 2,428
  • sloc: ansic: 28,198; sh: 9,093; makefile: 284; perl: 85
file content (27 lines) | stat: -rwxr-xr-x 1,084 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_CONFIGURE_EXTRA_FLAGS = --libdir=/usr/lib/tn5250 --disable-static --disable-os-dir
DEB_INSTALL_DOCS_tn5250 = ./README.ssl
DEB_SHLIBDEPS_INCLUDE = $(DEB_DESTDIR)/usr/lib/tn5250
DEB_DH_MAKESHLIBS_ARGS = -Xlib5250

# Update timestamps on automake/autoconf files in order generated.
clean::
	touch -c aclocal.m4 configure src/tn5250-config.h */Makefile.in Makefile.in

# Clean up unwanted development files and create symlinked terminfo file.
binary-post-install/tn5250::
	$(RM) -r $(DEB_DESTDIR)/usr/lib/tn5250/*.la \
		$(DEB_DESTDIR)/usr/lib/tn5250/*.so \
		$(DEB_DESTDIR)/usr/lib/tn5250/pkgconfig \
		$(DEB_DESTDIR)/usr/include $(DEB_DESTDIR)/usr/man \
		$(DEB_DESTDIR)/usr/share/aclocal \
		$(DEB_DESTDIR)/usr/share/terminfo \
		$(DEB_DESTDIR)/usr/bin/tn5250-config \
		$(DEB_DESTDIR)/usr/bin/tn5250d \
		$(DEB_DESTDIR)/usr/bin/tn3270d
	tic -o$(DEB_DESTDIR)/usr/share/terminfo debian/linux-5250.terminfo
	ln -sf ../5/5250 $(DEB_DESTDIR)/usr/share/terminfo/l/linux-5250