ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = config/include-Makefile.am \
- autogen.sh
+ autogen.sh \
+ licenses/COPYING.GPL \
+ licenses/COPYING.UCB
distclean-local:
-find . \( -name \*~ -o -name \*.orig -o -name \*.rej \) -exec rm -f {} \;
cd po; rm -f `cat .gitignore`; cd ..
cd config; rm -f `cat ../.gitignore`; cd ..
+# The automake is very stupid for work with man pages. The files from man_MANS are
+# not included to the distribution. A solution is use dist_man_MANS or
+# EXTRA_DIST = $(man_MANS) -- but these solutions are ugly in case that there
+# is a lot of "if <cond>", because the result in EXTRA_DIST or dist_man_MANS
+# depends on the condition ;-(
+dist-hook:
+ -find -regex "\./[a-z\-]*/[a-z\.\-\_]*\.[1-9]" -exec cp {} $(distdir)/{} \;
+
AC_CONFIG_FILES([
Makefile
disk-utils/Makefile
-fdisk/Makefile
+fdisk/Makefile
getopt/Makefile
hwclock/Makefile
+include/Makefile
lib/Makefile
login-utils/Makefile
misc-utils/Makefile
fsck.minix.8 mkfs.minix.8 mkfs.bfs.8
sbin_PROGRAMS = mkfs mkswap blockdev fsck.minix mkfs.minix mkfs.bfs
-fsck_minix_SOURCES = fsck.minix.c
-mkfs_minix_SOURCES = mkfs.minix.c
+fsck_minix_SOURCES = fsck.minix.c bitops.h minix.h
+mkfs_minix_SOURCES = mkfs.minix.c bitops.h minix.h
mkfs_bfs_SOURCES = mkfs.bfs.c
+mkswap_SOURCES = mkswap.c swapheader.h
usrbinexec_PROGRAMS = fdformat isosize
if BUILD_CRAMFS
sbin_PROGRAMS += fsck.cramfs mkfs.cramfs
-fsck_cramfs_SOURCES = fsck.cramfs.c
-mkfs_cramfs_SOURCES = mkfs.cramfs.c
+fsck_cramfs_SOURCES = fsck.cramfs.c cramfs.h
+mkfs_cramfs_SOURCES = mkfs.cramfs.c cramfs.h
fsck_cramfs_LDADD = -lz
mkfs_cramfs_LDADD = -lz $(top_srcdir)/lib/libmd5.a
endif
if HAVE_UUID
mkswap_LDADD = -luuid
endif
+
include $(top_srcdir)/config/include-Makefile.am
+EXTRA_DIST = README.fdisk README.cfdisk
+
if !M68K
sbin_PROGRAMS = fdisk
man_MANS = fdisk.8
fdisk_SOURCES = fdisk.c disksize.c fdiskbsdlabel.c fdisksgilabel.c \
- fdisksunlabel.c fdiskaixlabel.c i386_sys_types.c partname.c
+ fdisksunlabel.c fdiskaixlabel.c i386_sys_types.c partname.c \
+ common.h fdisk.h fdisksunlabel.h fdisksgilabel.h fdiskaixlabel.h fdiskbsdlabel.h
if !SPARC
sbin_PROGRAMS += sfdisk
man_MANS += sfdisk.8
-sfdisk_SOURCES = sfdisk.c disksize.c i386_sys_types.c partname.c
+sfdisk_SOURCES = sfdisk.c disksize.c i386_sys_types.c partname.c common.h
if USE_SLANG
sbin_PROGRAMS += cfdisk
man_MANS += cfdisk.8
-cfdisk_SOURCES = cfdisk.c disksize.c i386_sys_types.c
+cfdisk_SOURCES = cfdisk.c disksize.c i386_sys_types.c common.h
cfdisk_LDADD = -lslang
else
if HAVE_NCURSES
sbin_PROGRAMS += cfdisk
man_MANS += cfdisk.8
-cfdisk_SOURCES = cfdisk.c disksize.c i386_sys_types.c
+cfdisk_SOURCES = cfdisk.c disksize.c i386_sys_types.c common.h
cfdisk_LDADD = -lncurses
endif
endif
endif
endif
+
exampledir = $(prefix)/usr/share/getopt/
example_DATA = getopt-parse.bash getopt-parse.tcsh \
getopt-test.bash getopt-test.tcsh
+
+EXTRA_DIST = $(example_DATA) README Changelog COPYING
+
sbin_PROGRAMS = hwclock
-hwclock_SOURCES = hwclock.c cmos.c rtc.c kd.c
\ No newline at end of file
+hwclock_SOURCES = hwclock.c cmos.c rtc.c kd.c clock.h
+
usrsbinexec_PROGRAMS =
man_MANS =
+EXTRA_DIST = README.getty README.modems-with-agetty README.poeigl
+
if BUILD_AGETTY
sbin_PROGRAMS += agetty
man_MANS += agetty.8
man_MANS += fastboot.8 fasthalt.8 halt.8 reboot.8 simpleinit.8 shutdown.8 \
initctl.8
+simpleinit_SOURCES = simpleinit.c my_crypt.h simpleinit.h
+initctl_SOURCES = initctl.c simpleinit.h
if NEED_LIBCRYPT
simpleinit_LDADD = -lcrypt
endif
-endif
+endif
if BUILD_LAST
usrbinexec_PROGRAMS += last
usrsbinexec_PROGRAMS += vipw
man_MANS += chfn.1 chsh.1 login.1 newgrp.1 vipw.8 vigr.8
-chfn_SOURCES = chfn.c islocal.c setpwnam.c
-chsh_SOURCES = chsh.c islocal.c setpwnam.c
+chfn_SOURCES = chfn.c islocal.c setpwnam.c islocal.h my_crypt.h setpwnam.h
+chsh_SOURCES = chsh.c islocal.c setpwnam.c islocal.h my_crypt.h setpwnam.h
+newgrp_SOURCES = newgrp.c my_crypt.h
+vipw_SOURCES = vipw.c setpwnam.h
chfn_LDADD = ../lib/libenv.a
chsh_LDADD = ../lib/libenv.a
chfn_LDADD += -lpam -lpam_misc
chsh_LDADD += -lpam -lpam_misc
login_LDADD += -lpam -lpam_misc
-login_SOURCES = login.c
+login_SOURCES = login.c login.h my_crypt.h
else
-login_SOURCES = login.c checktty.c
+login_SOURCES = login.c checktty.c login.h my_crypt.h
endif
if HAVE_SELINUX
-chfn_SOURCES += selinux_utils.c
+chfn_SOURCES += selinux_utils.c selinux_utils.h
chfn_LDADD += -lselinux
-chsh_SOURCES += selinux_utils.c
+chsh_SOURCES += selinux_utils.c selinux_utils.h
chsh_LDADD += -lselinux
vipw_LDADD += -lselinux
endif
if BUILD_WALL
usrbinexec_PROGRAMS += wall
-wall_SOURCES = wall.c ttymsg.c
+wall_SOURCES = wall.c ttymsg.c ttymsg.h
man_MANS += wall.1
if USE_TTY_GROUP
endif
-
if BUILD_INIT
install-exec-hook::
include $(top_srcdir)/config/include-Makefile.am
+EXTRA_DIST = README.cal README.namei README1.namei chkdupexe.pl \
+ scriptreplay.pl
+
bin_PROGRAMS =
usrbinexec_PROGRAMS = cal ddate logger look mcookie \
if BUILD_KILL
bin_PROGRAMS += kill
-kill_SOURCES = kill.c procs.c
+kill_SOURCES = kill.c procs.c kill.h
man_MANS += kill.1
endif
include $(top_srcdir)/config/include-Makefile.am
+EXTRA_DIST = README.mount swap.configure
+
AM_CPPFLAGS += -DHAVE_NFS
bin_PROGRAMS = mount umount
sbin_PROGRAMS = losetup swapon
man_MANS = fstab.5 nfs.5 mount.8 swapoff.8 swapon.8 umount.8 losetup.8
+MNTHDRS = fstab.h linux_fs.h mntent.h mount_constants.h my_dev_t.h paths.h \
+ get_label_uuid.h lomount.h mount_blkid.h mount_guess_fstype.h \
+ nfs_mount4.h realpath.h xmalloc.h getusername.h loop.h mount_by_label.h \
+ mount_guess_rootdev.h nfsmount.h sundries.h
+
mount_SOURCES = mount.c fstab.c sundries.c xmalloc.c realpath.c mntent.c \
get_label_uuid.c mount_by_label.c mount_blkid.c mount_guess_fstype.c \
getusername.c \
nfsmount.c nfsmount_xdr.c nfsmount_clnt.c \
- lomount.c
+ lomount.c \
+ $(MNTHDRS)
mount_LDADD = $(top_srcdir)/lib/libenv.a $(top_srcdir)/lib/libsetproctitle.a
umount_SOURCES = umount.c fstab.c sundries.c xmalloc.c realpath.c mntent.c \
getusername.c get_label_uuid.c mount_by_label.c mount_blkid.c \
- lomount.c
-
+ lomount.c \
+ $(MNTHDRS)
+
umount_LDADD = $(top_srcdir)/lib/libenv.a
swapon_SOURCES = swapon.c xmalloc.c \
- get_label_uuid.c mount_by_label.c mount_blkid.c
+ get_label_uuid.c mount_by_label.c mount_blkid.c \
+ swap_constants.h
-losetup_SOURCES = lomount.c
+losetup_SOURCES = lomount.c loop.h lomount.h
losetup_CFLAGS = -DMAIN
if HAVE_BLKID
if BUILD_PARTX
usrsbinexec_PROGRAMS = addpart delpart partx
-partx_SOURCES = bsd.c dos.c partx.c solaris.c unixware.c gpt.c crc32.c
+partx_SOURCES = bsd.c dos.c partx.c solaris.c unixware.c gpt.c crc32.c \
+ efi.h gpt.h crc32.h partx.h dos.h
endif
usrbinexec_PROGRAMS = cytune flock ipcrm ipcs renice setsid
+cytune_SOURCES = cytune.c cyclades.h
+
sbin_PROGRAMS = ctrlaltdel
usrsbinexec_PROGRAMS = readprofile tunelp
+tunelp_SOURCES = tunelp.c lp.h
+
man_MANS = flock.1 readprofile.1 \
ctrlaltdel.8 cytune.8 dmesg.8 ipcrm.8 ipcs.8 renice.8 \
setsid.8 tunelp.8
include $(top_srcdir)/config/include-Makefile.am
+EXTRA_DIST = README.clear README.col README.pg README.reset LICENSE.pg
+
usrbinexec_PROGRAMS = col colcrt colrm column hexdump rev line tailf
-hexdump_SOURCES = hexdump.c conv.c display.c hexsyntax.c odsyntax.c parse.c
+hexdump_SOURCES = hexdump.c conv.c display.c hexsyntax.c odsyntax.c parse.c \
+ hexdump.h
man_MANS = col.1 colcrt.1 colrm.1 column.1 hexdump.1 rev.1 line.1 tailf.1