]> err.no Git - util-linux/commitdiff
build-sys: cleanup sys-utils/ rdev symlinks
authorKarel Zak <kzak@redhat.com>
Fri, 29 Jun 2007 13:12:33 +0000 (15:12 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 29 Jun 2007 13:12:33 +0000 (15:12 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/Makefile.am

index f43997e152a96caa8261f7eeda7ab0dcd41539a7..92730b18bd18041181b98fd770f3d8dd5fd54562 100644 (file)
@@ -20,17 +20,14 @@ info_TEXINFOS = ipc.texi
 
 
 if BUILD_RDEV
-
 if INTEL
-
 usrsbinexec_PROGRAMS += rdev
 man_MANS += rdev.8 ramsize.8 rootflags.8 vidmode.8
-
-install-exec-hook:
-       cd $(DESTDIR)$(usrsbinexecdir) && ln -sf rdev ramsize
-       cd $(DESTDIR)$(usrsbinexecdir) && ln -sf rdev vidmode
-       cd $(DESTDIR)$(usrsbinexecdir) && ln -sf rdev rootflags
-
+RDEV_LINKS = ramsize vidmode rootflags
 endif
-
 endif
+
+install-exec-hook:
+       for I in $(RDEV_LINKS); do \
+               cd $(DESTDIR)$(usrsbinexecdir) && ln -sf rdev $$I ; \
+       done