File: rules

package info (click to toggle)
altree 1.3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,288 kB
  • sloc: perl: 3,482; ansic: 1,716; sh: 267; pascal: 67; makefile: 21
file content (30 lines) | stat: -rwxr-xr-x 781 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
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file for altree
# Andreas Tille <tille@debian.org>
# GPL

%:
	dh $@

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_before_dh_auto_clean:
	$(MAKE) -C Documentation distclean || true

execute_before_dh_auto_build:
	$(MAKE) -C Documentation pdf

override_dh_compress:
	dh_compress --exclude=.pdf
endif # !nodoc

INSTALL_DIR != echo debian/altree/usr/lib/*/perl*/*/ALTree/
NATIONAL_ENCODING = Chi2.pm Import.pm Input.pm Node.pm SitePerForet.pm
NATIONAL_ENCODING+= SiteSensPerTree.pm Tree.pm to_rewrite.pm
execute_after_dh_install-arch:
	set -e \
	; cd $(INSTALL_DIR) \
	; for file in $(NATIONAL_ENCODING) \
	; do iconv -f ISO-8859-1 -t UTF-8 < "$${file}" > "$${file}.conv" \
	;    mv -vf "$${file}.conv" "$${file}" \
	; done