File: rules

package info (click to toggle)
critcl 3.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 8,608 kB
  • sloc: ansic: 54,882; tcl: 13,717; sh: 4,213; asm: 3,058; pascal: 2,758; ada: 1,681; cpp: 1,001; cs: 879; makefile: 310; perl: 104; xml: 95; f90: 10
file content (36 lines) | stat: -rwxr-xr-x 1,057 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
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f

export CRITCL_VER := $(shell sed -n "/package provide critcl/s/.*critcl //gp" lib/critcl/critcl.tcl)

%:
	dh $@

override_dh_auto_install:
	./build.tcl install debian/critcl/usr/lib/tcltk
	mv debian/critcl/usr/lib debian/critcl/usr/share
	rm debian/critcl/usr/share/tcltk/critcl$(CRITCL_VER)/license.terms
	for d in 8.4 8.5 8.6 ; \
	do \
		rm -rf debian/critcl/usr/share/tcltk/critcl$(CRITCL_VER)/critcl_c/tcl$$d; \
		ln -s /usr/include/tcl$$d debian/critcl/usr/share/tcltk/critcl$(CRITCL_VER)/critcl_c/tcl$$d; \
	done

override_dh_installman:
	mkdir -p debian/tmp/man
	cd doc && \
		dtplite -ext 3tcl -o ../debian/tmp/man nroff . && \
		mv ../debian/tmp/man/files/critcl_app.3tcl \
	   	   ../debian/tmp/man/files/critcl.1
	dh_installman

override_dh_installexamples:
	dh_installexamples -Xzlibwrap/zlib/

override_dh_compress:
	dh_compress -Xexamples

override_dh_gencontrol:
	tcltk-depends
	dh_gencontrol

.PHONY: override_dh_auto_install override_dh_gencontrol override_dh_installman override_dh_compress override_dh_installexamples