| 1 |
# Makefile.am --- automake input file |
| 2 |
|
| 3 |
AUTOMAKE_OPTIONS = subdir-objects |
| 4 |
install-exec-local: |
| 5 |
for f in stap-jupyter-container stap-jupyter-install; \ |
| 6 |
do $(INSTALL_PROGRAM) -D $$f $(DESTDIR)$(bindir)/$$f; done |
| 7 |
|
| 8 |
install-data-local: |
| 9 |
(cd "$(srcdir)"; for f in *.{ipynb,md,txt,json,py}; \ |
| 10 |
do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/interactive-notebook/$$f; done) |
| 11 |
(cd "$(srcdir)/isystemtap"; for f in *.{py,json}; \ |
| 12 |
do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/interactive-notebook/isystemtap/$$f; done) |
| 13 |
(cd "$(srcdir)/container"; for f in *; \ |
| 14 |
do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/interactive-notebook/container/$$f; done) |
| 15 |
($(INSTALL_DATA) -D -m 755 stap-jupyter-install $(DESTDIR)$(pkgdatadir)/interactive-notebook/container/stap-jupyter-install) |
| 16 |
(cd "$(srcdir)/codemirror"; \ |
| 17 |
for f in jupyterlab-stap-highlighting/__init__.py lib/plugin.js lib/stap.js package.json; \ |
| 18 |
do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/interactive-notebook/codemirror/$$f; done) |
| 19 |
(cd "$(srcdir)/tests"; for f in *; \ |
| 20 |
do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/interactive-notebook/tests/$$f; done) |
| 21 |
@echo "STAP_VERSION = '$(VERSION)'" > "constants.py" |
| 22 |
@echo "STAP_PKGDATADIR = '$(pkgdatadir)'" >> "constants.py" |
| 23 |
@echo "STAP_PREFIX = '$(prefix)'" >> "constants.py" |
| 24 |
$(INSTALL_DATA) -D constants.py $(DESTDIR)$(pkgdatadir)/interactive-notebook/isystemtap/constants.py |
| 25 |
|
| 26 |
clean-local: |
| 27 |
rm -f constants.py stap-jupyter-container stap-jupyter-install |
| 28 |
|
| 29 |
uninstall-local: |
| 30 |
rm -rf $(DESTDIR)$(pkgdatadir)/interactive-notebook |
| 31 |
rm -f $(DESTDIR)$(bindir)/stap-jupyter-container |
| 32 |
rm -f $(DESTDIR)$(bindir)/stap-jupyter-install |