modify ln --relative with cd & ln 94/56094/2 accepted/tizen_3.0_common accepted/tizen_4.0_unified accepted/tizen_common accepted/tizen_unified tizen_3.0.m2 tizen_4.0 accepted/tizen/3.0/common/20161114.110532 accepted/tizen/4.0/unified/20170816.011254 accepted/tizen/4.0/unified/20170828.222225 accepted/tizen/common/20160121.111232 accepted/tizen/unified/20170313.043811 submit/tizen_3.0_common/20161104.104000 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100005 submit/tizen_common/20160121.091645 submit/tizen_unified/20170313.032716 tizen_4.0.m1_release
authorMyoungJune Park <mj2004.park@samsung.com>
Mon, 4 Jan 2016 07:38:02 +0000 (16:38 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Tue, 19 Jan 2016 23:50:37 +0000 (08:50 +0900)
Change-Id: Id99f4c30b97aee49a6f0372ad569fa946b79e23f
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
Makefile

index bfd1320..c889510 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -112,7 +112,7 @@ ifneq ($(enable_documentation),no)
 endif
        if [ -n "$(systemdsystemunitdir)" ]; then \
                mkdir -p $(DESTDIR)$(systemdsystemunitdir); \
-               ln -srf $(DESTDIR)$(pkglibdir)/modules.d/98systemd/dracut-shutdown.service $(DESTDIR)$(systemdsystemunitdir)/dracut-shutdown.service; \
+               cd $(DESTDIR) && ln -sf ./$(pkglibdir)/modules.d/98systemd/dracut-shutdown.service ./$(systemdsystemunitdir)/dracut-shutdown.service && cd - ; \
                mkdir -p $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants; \
                ln -s ../dracut-shutdown.service \
                $(DESTDIR)$(systemdsystemunitdir)/shutdown.target.wants/dracut-shutdown.service; \
@@ -126,7 +126,7 @@ endif
                    dracut-pre-trigger.service \
                    dracut-pre-udev.service \
                    ; do \
-                       ln -srf $(DESTDIR)$(pkglibdir)/modules.d/98systemd/$$i $(DESTDIR)$(systemdsystemunitdir); \
+                       cd $(DESTDIR) && ln -sf ./$(pkglibdir)/modules.d/98systemd/$$i ./$(systemdsystemunitdir) && cd -; \
                        ln -s ../$$i \
                        $(DESTDIR)$(systemdsystemunitdir)/initrd.target.wants/$$i; \
                done \