File: rules

package info (click to toggle)
clamtk 4.27-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,796 kB
  • ctags: 73
  • sloc: perl: 3,554; makefile: 11
file content (19 lines) | stat: -rwxr-xr-x 508 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# -*- makefile -*-

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

LOCALES_DIR = $(CURDIR)/debian/clamtk/usr/share/locale

override_dh_auto_install:
	@echo Installing locales now...
	for locale in $(shell ls $(CURDIR)/po/*.mo | sed 's@.*/\(.*\)\.mo@\1@g'); \
		do mkdir -p $(LOCALES_DIR)/$$locale/LC_MESSAGES/ && \
		install -m 644 $(CURDIR)/po/$$locale.mo $(LOCALES_DIR)/$$locale/LC_MESSAGES/clamtk.mo; \
	done
	-rm -rf $(LOCALES_DIR)/clamtk/
	dh_auto_install

%:
	dh $@