Harald Welte | 433005c | 2020-09-26 11:51:32 +0200 | [diff] [blame] | 1 | .PHONY: clean-local install-data-hook uninstall-local |
| 2 | |
| 3 | EXTRA_DIST = libosmocore.stp |
| 4 | TAPSET_FILES = $(EXTRA_DIST) |
| 5 | TAPSET_INSTALL_DIR = $(DESTDIR)@ABS_TAPSET_DIR@ |
| 6 | |
| 7 | if ENABLE_SYSTEMTAP |
| 8 | all-local: $(TAPSET_FILES) |
| 9 | |
| 10 | clean-local: |
| 11 | |
| 12 | install-data-hook: |
| 13 | $(MKDIR_P) $(TAPSET_INSTALL_DIR) |
| 14 | $(INSTALL_DATA) $(TAPSET_FILES) $(TAPSET_INSTALL_DIR) |
| 15 | |
| 16 | uninstall-local: |
| 17 | @list='$(TAPSET_FILES)'; for p in $$list; do \ |
| 18 | echo " rm -f '$(TAPSET_INSTALL_DIR)/$$p'"; \ |
| 19 | rm -f "$(TAPSET_INSTALL_DIR)/$$p"; \ |
| 20 | done |
| 21 | |
| 22 | endif |