Commit 7f9c90c8b208260d5ba3fdabdb14cc0c15aad9b3
1 parent
6c4472e1
make sure that scripts are executable
Showing
1 changed file
with
7 additions
and
0 deletions
src/Makefile.am
| ... | ... | @@ -25,3 +25,10 @@ libctatools_la_LIBADD = ctbin/libctbin.la \ |
| 25 | 25 | EXTRA_DIST = $(scripts) |
| 26 | 26 | scriptsdir = $(bindir) |
| 27 | 27 | scripts_DATA = $(scripts) |
| 28 | + | |
| 29 | +# Add hook rule to make scripts executable | |
| 30 | +install-data-hook: | |
| 31 | + @list='$(scripts_DATA)';\ | |
| 32 | + for p in $$list; do \ | |
| 33 | + if test -f "$$p"; then chmod +x "$(DESTDIR)$(scriptsdir)/$$p"; fi; \ | |
| 34 | + done | ... | ... |