File: proper-ln

package info (click to toggle)
owx 0~20110415-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 300 kB
  • ctags: 208
  • sloc: cpp: 1,253; sh: 111; makefile: 53
file content (21 lines) | stat: -rw-r--r-- 830 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/Makefile b/src/Makefile
index 34a2949..81696d9 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -33,11 +36,11 @@ install: all
 	$(INSTALL) -d $(LIBXDIR)
 	$(INSTALL) -m 755 $(NAME) $(LIBXDIR)
 	$(INSTALL) -d $(BINDIR)
-	$(LN) -f -s $(LIBXDIR)$(NAME) $(BINDIR)$(NAME)-check
-	$(LN) -f -s $(LIBXDIR)$(NAME) $(BINDIR)$(NAME)-get
-	$(LN) -f -s $(LIBXDIR)$(NAME) $(BINDIR)$(NAME)-put
-	$(LN) -f -s $(LIBXDIR)$(NAME) $(BINDIR)$(NAME)-export
-	$(LN) -f -s $(LIBXDIR)$(NAME) $(BINDIR)$(NAME)-import
+	$(LN) -f -s $(PREFIX)/sbin/$(NAME) $(BINDIR)$(NAME)-check
+	$(LN) -f -s $(PREFIX)/sbin/$(NAME) $(BINDIR)$(NAME)-get
+	$(LN) -f -s $(PREFIX)/sbin/$(NAME) $(BINDIR)$(NAME)-put
+	$(LN) -f -s $(PREFIX)/sbin/$(NAME) $(BINDIR)$(NAME)-export
+	$(LN) -f -s $(PREFIX)/sbin/$(NAME) $(BINDIR)$(NAME)-import
 
 .PHONY: clean
 clean: