update xend-config.sxp transformer for newer default config
[invirt/packages/invirt-xen-config.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_DIVERT_EXTENSION = .invirt
4
5 DEB_DIVERT_FILES_invirt-xen-config += \
6         /etc/xen/qemu-ifup.invirt \
7         /etc/xen/xend-config.sxp.invirt
8
9 DEB_UNDIVERT_FILES_invirt-xen-config += \
10         /etc/apt/preferences.invirt
11
12 DEB_UNDIVERT_VERSION_/etc/apt/preferences.invirt = 0.0.27~
13
14 include /usr/share/cdbs/1/rules/debhelper.mk
15 include /usr/share/cdbs/1/rules/config-package.mk
16
17 common-build-indep:: debian/xend-config.sxp.invirt.mako
18
19 debian/xend-config.sxp.invirt.mako: $(call debian_check_files,/etc/xen/xend-config.sxp)
20         debian/transform_xend-config.sxp.invirt.mako < $< > $@
21
22 clean::
23         rm -f debian/xend-config.sxp.invirt.mako