File: rules

package info (click to toggle)
clamtk 5.24-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,228 kB
  • sloc: perl: 4,336; python: 34; 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 $@