aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-06-04 11:00:03 +0200
committerDee'Kej <deekej@linuxmail.org>2018-06-04 13:55:36 +0200
commitbfbd7950f097af33d87ff4ad31ba67576601f60d (patch)
treec9dc394c9ba8d36ce5f35ab0ab1c9f83865467e3 /Makefile
parent9cb02497d4c4ef55bd18e096ce3169724eec657d (diff)
downloadinitscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar
initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar.gz
initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar.bz2
initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar.xz
initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.zip
Makefile: make the creation of symlinks relative to path again
Resolves: RHBZ#1585321
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 574204e6..24d6bbe3 100644
--- a/Makefile
+++ b/Makefile
@@ -73,10 +73,8 @@ install-usr:
install-network-scripts: install-usr install-etc
install -m 0755 -d $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts
cp -a network-scripts/* $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts/
- (cd $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts; \
- ln -sf ifup-ippp ifup-isdn ; \
- ln -sf ifdown-ippp ifdown-isdn ; \
- )
+ ln -srf $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts/{ifup-ippp,ifup-isdn}
+ ln -srf $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts/{ifdown-ippp,ifdown-isdn}
install-man: install-usr
install -m 0755 -d $(DESTDIR)$(mandir)/man1
@@ -97,7 +95,7 @@ install-post: install-etc
for idx in {0..6}; do \
dir=$(DESTDIR)$(sysconfdir)/rc.d/rc$$idx.d; \
install -m 0755 -d $$dir; \
- ln -sf $(sysconfdir)/rc.d/rc$$idx.d $(DESTDIR)$(sysconfdir)/; \
+ ln -srf $(DESTDIR)$(sysconfdir)/rc.d/rc$$idx.d $(DESTDIR)$(sysconfdir)/; \
done
touch $(DESTDIR)$(sysconfdir)/rc.d/rc.local
chmod 0755 $(DESTDIR)$(sysconfdir)/rc.d/rc.local