aboutsummaryrefslogtreecommitdiff
path: root/pmake.hack/bsd.links.mk
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-05-07 17:30:06 -0400
committerB. Watson <yalhcru@gmail.com>2015-05-07 17:30:06 -0400
commitee67778ca3abc6a091e5585e4c44d7c1a39e5833 (patch)
treee902d9df62c0d5b6b97cec367dfc4dacc739f115 /pmake.hack/bsd.links.mk
parent586b16e2a0cdf79a5c470cd4e9abd8a8f55ceab6 (diff)
downloadbsd-games-extra-ee67778ca3abc6a091e5585e4c44d7c1a39e5833.tar.gz
Fix 64-bit buildHEADmaster
Diffstat (limited to 'pmake.hack/bsd.links.mk')
-rw-r--r--pmake.hack/bsd.links.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/pmake.hack/bsd.links.mk b/pmake.hack/bsd.links.mk
new file mode 100644
index 0000000..e377574
--- /dev/null
+++ b/pmake.hack/bsd.links.mk
@@ -0,0 +1,43 @@
+# $NetBSD: bsd.links.mk,v 1.8 1998/12/31 15:28:52 castor Exp $
+
+.PHONY: linksinstall
+realinstall: linksinstall
+
+.if defined(SYMLINKS) && !empty(SYMLINKS)
+linksinstall::
+ @set ${SYMLINKS}; \
+ while test $$# -ge 2; do \
+ l=$$1; \
+ shift; \
+ t=${DESTDIR}$$1; \
+ shift; \
+ echo ".include <bsd.own.mk>"; \
+ echo "all:: $$t"; \
+ echo ".PHONY: $$t"; \
+ echo "$$t:"; \
+ echo " @echo \"$$t -> $$l\""; \
+ echo " @rm -f $$t"; \
+ echo " @ln -s $$l $$t"; \
+ done | ${MAKE} -f-
+.endif
+.if defined(LINKS) && !empty(LINKS)
+linksinstall::
+ @set ${LINKS}; \
+ while test $$# -ge 2; do \
+ l=${DESTDIR}$$1; \
+ shift; \
+ t=${DESTDIR}$$1; \
+ shift; \
+ echo ".include <bsd.own.mk>"; \
+ echo "all:: $$t"; \
+ echo ".PHONY: $$t"; \
+ echo "$$t:"; \
+ echo " @echo \"$$t -> $$l\""; \
+ echo " @rm -f $$t"; \
+ echo " @ln $$l $$t"; \
+ done | ${MAKE} -f-
+.endif
+
+.if !target(linksinstall)
+linksinstall:
+.endif