diff options
author | Karel Zak | 2007-10-15 13:41:18 +0200 |
---|---|---|
committer | Karel Zak | 2007-10-18 14:59:23 +0200 |
commit | 389afa3f9bb465701ba03cdd2f397f8792f62bb6 (patch) | |
tree | fa079d247b85dc793c9561630614613967ff0998 | |
parent | cal: replace errs.h with libc err.h (diff) | |
download | kernel-qcow2-util-linux-389afa3f9bb465701ba03cdd2f397f8792f62bb6.tar.gz kernel-qcow2-util-linux-389afa3f9bb465701ba03cdd2f397f8792f62bb6.tar.xz kernel-qcow2-util-linux-389afa3f9bb465701ba03cdd2f397f8792f62bb6.zip |
setarch: generate groff links in a better way
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | sys-utils/Makefile.am | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am index 898b9e656..4ef94d4d3 100644 --- a/sys-utils/Makefile.am +++ b/sys-utils/Makefile.am @@ -69,6 +69,13 @@ if ARCH_HPPA SETARCH_LINKS += parisc parisc64 parisc32 endif +SETARCH_MAN_LINKS = $(addsuffix .8, $(SETARCH_LINKS)) +man_MANS += $(SETARCH_MAN_LINKS) +CLEANFILES=$(SETARCH_MAN_LINKS) + +$(SETARCH_MAN_LINKS): setarch.8 + echo ".so setarch.8" > $@ + install-exec-hook: for I in $(RDEV_LINKS); do \ cd $(DESTDIR)$(usrsbinexecdir) && ln -sf rdev $$I ; \ @@ -76,7 +83,12 @@ install-exec-hook: for I in $(SETARCH_LINKS); do \ cd $(DESTDIR)$(usrbinexecdir) && ln -sf setarch $$I ; \ done + +uninstall-hook: + for I in $(RDEV_LINKS); do \ + rm -f $(DESTDIR)$(usrbinexecdir)/$$I ; \ + done for I in $(SETARCH_LINKS); do \ - echo ".so setarch.8" > $(DESTDIR)$(man8dir)/$$I.8 ; \ - done + rm -f $(DESTDIR)$(usrbinexecdir)/$$I ; \ + done |