File: rules

package info (click to toggle)
unicode-data 15.0.0-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 17,648 kB
  • sloc: makefile: 23
file content (34 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download | duplicates (8)
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
# -*- makefile -*-
#

# turn around bug in dpkg-parsechangelog
export LC_ALL=C

# The magic debhelper rule:
%:
	dh $@

SOURCE_DIR      = build-tree
STAMP_DIR       = stampdir

build: $(STAMP_DIR)/build-stamp
$(STAMP_DIR)/build-stamp:
	dh_testdir
	mkdir -p $(SOURCE_DIR) $(STAMP_DIR) 
	(cd $(SOURCE_DIR) && TZ=UTC unzip ../UCD.zip )
	(cd $(SOURCE_DIR) && TZ=UTZ unzip ../Unihan.zip )
	( find $(SOURCE_DIR) -name '*txt' | while read f; do \
		tr -d \\r < $$f > tmpf  ; \
		mv tmpf $$f ;			\
		done )
	bzip2 $(SOURCE_DIR)/NormalizationTest.txt
	( cd $(SOURCE_DIR); for d in Unihan*.txt ; do \
		bzip2 $$d ; done )
	touch $@
	
binary-indep: build

override_dh_auto_clean:
	rm -rf $(STAMP_DIR) $(SOURCE_DIR)
	dh_clean