summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-08-09 06:55:27 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-08-09 06:55:27 -0700
commitdabb1af43201bd768c85b6fbef3dec7e55c0b9d6 (patch)
tree3298924afecb59368e6244a84d0bc4f76570e1b0
parent7890fe93a1639ac2e9f8001af5ea6454b659151a (diff)
downloadtxr-dabb1af43201bd768c85b6fbef3dec7e55c0b9d6.tar.gz
txr-dabb1af43201bd768c85b6fbef3dec7e55c0b9d6.tar.bz2
txr-dabb1af43201bd768c85b6fbef3dec7e55c0b9d6.zip
build: handle hard link failure in make install.
* Makefile (HARDLINK): Print a diagnostic if the link command fails and ignore the situation. Hard links are restricted on Android. On that platform, txr being available under the names txrlisp and txrvm is likely of limited utility, so we won't waste space by making copies of the executable.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6aa30b3a..b038f556 100644
--- a/Makefile
+++ b/Makefile
@@ -518,7 +518,7 @@ endef
define HARDLINK
$(call ABBREV3,HARDLINK,$(1),$(2))
- $(call SH,$(LN) -f $(1) $(2))
+ $(call SH,$(LN) -f $(1) $(2) || printf "(HARDLINK failed)\n")
endef
PREINSTALL := :