Because we declare the scripts/*install target in `edit.am` and in
`Makefile.am`, only one of them is used. With automake, it doesn't seem
possible to easily extend a target. Instead, do the chmod just before we
need it.
# provide optional components to be installed.
pkg.1/$(PKG_NAME): $(PKG_DIR) scripts
[ -d pkg.1 ] || mkdir pkg.1
+ chmod +x scripts/postinstall scripts/preinstall
$(PKGBUILD) \
--root $(PKG_DIR) \
--identifier im.bernat.@PACKAGE@.daemon \
distribution.xml: distribution.xml.in
im.bernat.lldpd.plist: im.bernat.lldpd.plist.in
scripts/postinstall: scripts/postinstall.in
- chmod +x $@
scripts/preinstall: scripts/preinstall.in
- chmod +x $@
include $(top_srcdir)/edit.am
.PHONY: pkg requirements