File: rules

package info (click to toggle)
tkinspect 5.1.6p10-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 488 kB
  • sloc: tcl: 3,504; makefile: 23
file content (34 lines) | stat: -rwxr-xr-x 920 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

DESTDIR=debian/tkinspect
LIBDIR=/usr/share/tkinspect

%:
	dh $@

override_dh_clean:
	dh_clean debian/tkinspect.1

override_dh_auto_install:
	# Install the package into debian/tkinspect
	for f in *.tcl *.html *.ppm tclIndex ChangeLog ; do \
	    install -m 644 $$f $(DESTDIR)$(LIBDIR) ; \
	done
	#
	rm $(DESTDIR)$(LIBDIR)/tkinspect.tcl
	rm $(DESTDIR)$(LIBDIR)/install.tcl
	#
	for f in stl-lite/*.tcl ; do \
	    install -m 644 $$f $(DESTDIR)$(LIBDIR)/stl-lite ; \
	done
	sed -e 's:@tkinspect_library@:$(LIBDIR):g' tkinspect.tcl \
	    >$(DESTDIR)/usr/bin/tkinspect
	# Create manpage
	dtplite -o - nroff debian/tkinspect.man | \
	    sed -e '/\.so man\.macros/ d' >debian/tkinspect.1

get-orig-source:
	wget -O tkinspect_5.16p10.orig.tar.gz \
		http://sourceforge.net/projects/tkcon/files/tkinspect/5.1.6p10/tkinspect-5.1.6p10.tar.gz

.PHONY: override_dh_clean override_dh_auto_install get-orig-source