diff options
Diffstat (limited to 'sys-utils/Makefile.am')
-rw-r--r-- | sys-utils/Makefile.am | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am new file mode 100644 index 0000000..19ecccc --- /dev/null +++ b/sys-utils/Makefile.am @@ -0,0 +1,101 @@ +include $(top_srcdir)/config/include-Makefile.am + +bin_PROGRAMS = +sbin_PROGRAMS = +usrbin_exec_PROGRAMS = flock ipcrm ipcs ipcmk renice setsid +usrsbin_exec_PROGRAMS = readprofile + +dist_man_MANS = flock.1 ipcrm.1 ipcs.1 ipcmk.1 renice.1 setsid.1 \ + readprofile.1 + +if LINUX +bin_PROGRAMS += dmesg +sbin_PROGRAMS += ctrlaltdel +usrbin_exec_PROGRAMS += cytune setarch lscpu +usrsbin_exec_PROGRAMS += ldattach tunelp rtcwake + +dist_man_MANS += dmesg.1 ctrlaltdel.8 cytune.8 setarch.8 \ + ldattach.8 lscpu.1 tunelp.8 rtcwake.8 +endif + +cytune_SOURCES = cytune.c cyclades.h +tunelp_SOURCES = tunelp.c lp.h + +info_TEXINFOS = ipc.texi + +if HAVE_PIVOT_ROOT +sbin_PROGRAMS += pivot_root +dist_man_MANS += pivot_root.8 +endif + +if BUILD_SWITCH_ROOT +sbin_PROGRAMS += switch_root +dist_man_MANS += switch_root.8 +endif + +if BUILD_ARCH +bin_PROGRAMS += arch +dist_man_MANS += arch.1 +endif + +RDEV_LINKS = +if BUILD_RDEV +usrsbin_exec_PROGRAMS += rdev +RDEV_LINKS += ramsize vidmode rootflags +dist_man_MANS += rdev.8 +endif + +SETARCH_LINKS = linux32 linux64 + +if ARCH_S390 +SETARCH_LINKS += s390 s390x +endif +if ARCH_I86 +SETARCH_LINKS += i386 +endif +if ARCH_86_64 +SETARCH_LINKS += i386 x86_64 +endif +if ARCH_PPC +SETARCH_LINKS += ppc ppc64 ppc32 +endif +if ARCH_SPARC +SETARCH_LINKS += sparc sparc64 sparc32 sparc32bash +endif +if ARCH_MIPS +SETARCH_LINKS += mips mips64 mips32 +endif +if ARCH_IA64 +SETARCH_LINKS += i386 ia64 +endif +if ARCH_HPPA +SETARCH_LINKS += parisc parisc64 parisc32 +endif + +RDEV_MAN_LINKS = $(RDEV_LINKS:=.8) +SETARCH_MAN_LINKS = $(SETARCH_LINKS:=.8) +man_MANS = $(RDEV_MAN_LINKS) $(SETARCH_MAN_LINKS) +CLEANFILES = $(man_MANS) + +$(RDEV_MAN_LINKS): rdev.8 + echo ".so man8/rdev.8" > $@ + +$(SETARCH_MAN_LINKS): setarch.8 + echo ".so man8/setarch.8" > $@ + +install-exec-hook: + for I in $(RDEV_LINKS); do \ + cd $(DESTDIR)$(usrsbin_execdir) && ln -sf rdev $$I ; \ + done + for I in $(SETARCH_LINKS); do \ + cd $(DESTDIR)$(usrbin_execdir) && ln -sf setarch $$I ; \ + done + +uninstall-hook: + for I in $(RDEV_LINKS); do \ + rm -f $(DESTDIR)$(usrbin_execdir)/$$I ; \ + done + for I in $(SETARCH_LINKS); do \ + rm -f $(DESTDIR)$(usrbin_execdir)/$$I ; \ + done + |