Commit a11d582a4afafde28f72ce2b719eb3d37f01b9f3
1 parent
d6f066f1
Install cscripts in the ctools Python module.
Showing
2 changed files
with
4 additions
and
10 deletions
scripts/Makefile.am
| ... | ... | @@ -7,8 +7,7 @@ binscripts = cta_kb_bkgrates.py cta_root2irf.py cta_make_nodes.py \ |
| 7 | 7 | # Scripts to be distributed in pythondir |
| 8 | 8 | pythonscripts = cspull.py cssens.py cstsdist.py cscaldb.py csresmap.py cshessobs.py \ |
| 9 | 9 | csobsdef.py csspec.py cslightcrv.py \ |
| 10 | - lsmodel.py \ | |
| 11 | - obsutils.py | |
| 10 | + lsmodel.py | |
| 12 | 11 | |
| 13 | 12 | # Scripts for which symbolic links will be created in bindir |
| 14 | 13 | linkscripts = cspull cssens cstsdist cscaldb csresmap \ |
| ... | ... | @@ -19,7 +18,7 @@ linkscripts = cspull cssens cstsdist cscaldb csresmap \ |
| 19 | 18 | EXTRA_DIST = $(binscripts) $(pythonscripts) |
| 20 | 19 | binscriptsdir = $(bindir) |
| 21 | 20 | binscripts_DATA = $(binscripts) |
| 22 | -pythonscriptsdir = $(pythondir) | |
| 21 | +pythonscriptsdir = $(pythondir)/ctools | |
| 23 | 22 | pythonscripts_DATA = $(pythonscripts) |
| 24 | 23 | |
| 25 | 24 | # Add hook rule to create symbolic links for cscripts |
| ... | ... | @@ -31,7 +30,7 @@ install-data-hook: |
| 31 | 30 | @linklist='$(linkscripts)';\ |
| 32 | 31 | for p in $$linklist; do \ |
| 33 | 32 | rm -rf "$(DESTDIR)$(bindir)/$$p"; \ |
| 34 | - ln -s "$(DESTDIR)$(pythondir)/$$p.py" "$(DESTDIR)$(bindir)/$$p"; \ | |
| 35 | - chmod +x "$(DESTDIR)$(pythondir)/$$p.py"; \ | |
| 33 | + ln -s "$(DESTDIR)$(pythondir)/ctools/$$p.py" "$(DESTDIR)$(bindir)/$$p"; \ | |
| 34 | + chmod +x "$(DESTDIR)$(pythondir)/ctools/$$p.py"; \ | |
| 36 | 35 | done |
| 37 | 36 | ... | ... |