diff --git a/examples/Makefile.am b/examples/Makefile.am index 1d0872d..eae0bb3 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -14,3 +14,11 @@ scripts_DATA = $(scripts) # Extra files to be distributed in the tar file EXTRA_DIST = $(scripts) + +# Add hook rule to make the examples executable +install-data-hook: + @list='$(scripts)';\ + for p in $$list; do \ + chmod +x "$(DESTDIR)$(scriptsdir)/$$p"; \ + done +