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 -- {} +
|