File: rules

package info (click to toggle)
tkabber-plugins 1.1.2%2B20250521-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,388 kB
  • sloc: tcl: 27,376; xml: 2,313; makefile: 82; sh: 21
file content (37 lines) | stat: -rwxr-xr-x 1,026 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

BASE   := tkabber-plugins
DESTDIR = $(CURDIR)/debian/$(BASE)
PREFIX := /usr
PLUGDIR = $(DESTDIR)/$(PREFIX)/share/$(BASE)
DOCDIR  = $(DESTDIR)/$(PREFIX)/share/doc/$(BASE)

override_dh_auto_install:
	$(MAKE) CURDIR=$(CURDIR) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install-bin
	#
	find $(PLUGDIR) -mindepth 1 -maxdepth 1 -type d \
		-exec $(SHELL) $(CURDIR)/debian/docify.sh $(DOCDIR) '{}' \;
	#
	mv $(PLUGDIR)/georoster/howto.txt $(DOCDIR)/README.georoster
	#
	mkdir $(DOCDIR)/checkers
	mv $(PLUGDIR)/checkers/rules $(DOCDIR)/checkers
	mv $(DOCDIR)/proto.checkers $(DOCDIR)/checkers/proto
	#
	chmod 664 $(PLUGDIR)/whiteboard/svgrender.tcl

VERSION = 1.1.2
DATE = 20250521

get-orig-source:
	wget -O tkabber-plugins_$(VERSION)+$(DATE).orig.tar.gz \
		https://chiselapp.com/user/sgolovan/repository/tkabber-plugins/tarball/tkabber-plugins.tar.gz?r=trunk:$(DATE)

.PHONY: override_dh_auto_build override_dh_auto_install