File: rules

package info (click to toggle)
roundcube-plugin-dovecot-impersonate 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: php: 34; xml: 18; makefile: 18
file content (27 lines) | stat: -rwxr-xr-x 718 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
#!/usr/bin/make -f

ROUNDCUBE_PLUGIN_NAME = dovecot_impersonate
export ROUNDCUBE_PLUGIN_NAME

%:
	dh $@ --with phpcomposer

GENERATED_FILES :=

# Create config file with dummy content
GENERATED_FILES += config.inc.php
config.inc.php: config.inc.php.dist
	$(file >$@,<?php)
	$(file >>$@,// Empty configuration for $(ROUNDCUBE_PLUGIN_NAME) plugin)
	$(file >>$@,// See /usr/share/roundcube/plugins/$(ROUNDCUBE_PLUGIN_NAME)/$< for instructions)
	$(file >>$@,?>)

execute_after_dh_auto_clean:
	@rm -f -- $(GENERATED_FILES)

override_dh_auto_build: $(GENERATED_FILES) ;
.SECONDARY:

execute_after_dh_fixperms:
	find debian/roundcube-plugin-*/usr/share/roundcube/plugins \
		\! -name "*.sh" -type f -execdir chmod -x -- {} +