~ubuntu-branches/ubuntu/precise/pmake/precise

« back to all changes in this revision

Viewing changes to mk/bsd.links.mk

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2002-03-12 21:59:55 UTC
  • Revision ID: james.westby@ubuntu.com-20020312215955-i183oxj3rpm464yh
Tags: 1.45-10
* Fixed broken '.Nm ""' directives in the man page. Closes: #137768
* Changed name from "make" to "pmake" in manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#       $NetBSD: bsd.links.mk,v 1.8 1998/12/31 15:28:52 castor Exp $
 
2
 
 
3
.PHONY:         linksinstall
 
4
realinstall:    linksinstall
 
5
 
 
6
.if defined(SYMLINKS) && !empty(SYMLINKS)
 
7
linksinstall::
 
8
        @set ${SYMLINKS}; \
 
9
         while test $$# -ge 2; do \
 
10
                l=$$1; \
 
11
                shift; \
 
12
                t=${DESTDIR}$$1; \
 
13
                shift; \
 
14
                echo ".include <bsd.own.mk>"; \
 
15
                echo "all:: $$t"; \
 
16
                echo ".PHONY: $$t"; \
 
17
                echo "$$t:"; \
 
18
                echo "  @echo \"$$t -> $$l\""; \
 
19
                echo "  @rm -f $$t"; \
 
20
                echo "  @ln -s $$l $$t"; \
 
21
        done | ${MAKE} -f-
 
22
.endif
 
23
.if defined(LINKS) && !empty(LINKS)
 
24
linksinstall::
 
25
        @set ${LINKS}; \
 
26
         while test $$# -ge 2; do \
 
27
                l=${DESTDIR}$$1; \
 
28
                shift; \
 
29
                t=${DESTDIR}$$1; \
 
30
                shift; \
 
31
                echo ".include <bsd.own.mk>"; \
 
32
                echo "all:: $$t"; \
 
33
                echo ".PHONY: $$t"; \
 
34
                echo "$$t:"; \
 
35
                echo "  @echo \"$$t -> $$l\""; \
 
36
                echo "  @rm -f $$t"; \
 
37
                echo "  @ln $$l $$t"; \
 
38
        done | ${MAKE} -f-
 
39
.endif
 
40
 
 
41
.if !target(linksinstall)
 
42
linksinstall:
 
43
.endif