Commit 50b229ba6641cfd79bc2d3bd2da3df78c1de480a
1 parent
c149ea74
initial version
Showing
2 changed files
with
24 additions
and
0 deletions
examples/Makefile.am
0 → 100644
scripts/Makefile.am
0 → 100644
| 1 | +## Process this file with automake to produce Makefile.in | |
| 2 | + | |
| 3 | +# Scripts to be distributed in bindir | |
| 4 | +binscripts = | |
| 5 | + | |
| 6 | +# Scripts to be distributed in pythondir | |
| 7 | +pythonscripts = ctautils.py | |
| 8 | + | |
| 9 | +# Distribute scripts | |
| 10 | +EXTRA_DIST = $(binscripts) $(pythonscripts) | |
| 11 | +binscriptsdir = $(bindir) | |
| 12 | +binscripts_DATA = $(binscripts) | |
| 13 | +pythonscriptsdir = $(pythondir) | |
| 14 | +pythonscripts_DATA = $(pythonscripts) | |
| 15 | + | |
| 16 | +# Add hook rule to make binscripts executable | |
| 17 | +install-data-hook: | |
| 18 | + @list='$(binscripts_DATA)';\ | |
| 19 | + for p in $$list; do \ | |
| 20 | + if test -f "$$p"; then chmod +x "$(DESTDIR)$(binscriptsdir)/$$p"; fi; \ | |
| 21 | + done | ... | ... |