File: rules

package info (click to toggle)
clamtk 6.07-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,468 kB
  • sloc: perl: 4,510; python: 44; makefile: 23
file content (31 lines) | stat: -rwxr-xr-x 965 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
#!/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/
	tar xvf debian/gnome-icon-theme.tar -C $(CURDIR)
	tar xvf debian/gimp-icon-theme.tar -C $(CURDIR)
	dh_auto_install

override_dh_installdocs:
	cp nemo-sendto-clamtk/README.md README.nemo-sendto-clamtk
	cp clamtk-kde/README.md README.clamtk-kde
	cp thunar-sendto-clamtk/README README.Thunar-sendto-clamtk
	cp clamtk-gnome/README.md README_clamtk-gnome
	dh_installdocs
	rm README.nemo-sendto-clamtk
	rm README.clamtk-kde
	rm README.Thunar-sendto-clamtk
	rm README_clamtk-gnome
%:
	dh $@