-EXTRA_DIST = resources lipo
+EXTRA_DIST = resources lipo
+EXTRA_DIST += distribution.xml.in im.bernat.lldpd.plist.in scripts/postinstall.in scripts/preinstall.in
+TEMPLATES = distribution.xml im.bernat.lldpd.plist scripts/postinstall scripts/preinstall
if HOST_OS_OSX
launchddaemons_DATA = im.bernat.lldpd.plist
endif
-TEMPLATES = distribution.xml im.bernat.lldpd.plist scripts/postinstall scripts/preinstall
-EXTRA_DIST += distribution.xml.in im.bernat.lldpd.plist.in scripts/postinstall.in scripts/preinstall.in
CLEANFILES = $(TEMPLATES)
distribution.xml: distribution.xml.in
im.bernat.lldpd.plist: im.bernat.lldpd.plist.in