]> err.no Git - util-linux/commitdiff
build-sys: mount/Makefile.am tiny cleanup
authorStepan Kasal <skasal@redhat.com>
Tue, 15 May 2007 18:46:07 +0000 (20:46 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 May 2007 09:43:29 +0000 (11:43 +0200)
Major part of mount_SOURCES and umount_SOURCES is the same; factor it
out to a new make variable.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
mount/Makefile.am

index cf7b00d2636c42877802cff1806ebeb3d21526b4..6dbda45ab3cbf3534a3ab34b4048208ebba7783a 100644 (file)
@@ -11,22 +11,17 @@ MNTHDRS = fstab.h linux_fs.h mount_mntent.h mount_constants.h my_dev_t.h \
        mount_guess_fstype.h realpath.h xmalloc.h \
        getusername.h loop.h mount_by_label.h mount_guess_rootdev.h \
        sundries.h
+mount_common = fstab.c sundries.c xmalloc.c realpath.c mount_mntent.c \
+       getusername.c get_label_uuid.c mount_by_label.c mount_blkid.c \
+       lomount.c $(MNTHDRS)
 
-mount_SOURCES = mount.c fstab.c sundries.c xmalloc.c realpath.c mount_mntent.c \
-       get_label_uuid.c mount_by_label.c mount_blkid.c mount_guess_fstype.c \
-       getusername.c \
-       lomount.c \
-       $(MNTHDRS)
-
+mount_SOURCES = mount.c $(mount_common) \
+       mount_guess_fstype.c
 mount_LDADD = $(top_srcdir)/lib/libenv.a $(top_srcdir)/lib/libsetproctitle.a
 mount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
 mount_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
 
-umount_SOURCES = umount.c fstab.c sundries.c xmalloc.c realpath.c mount_mntent.c \
-       getusername.c get_label_uuid.c mount_by_label.c mount_blkid.c \
-       lomount.c \
-       $(MNTHDRS)
-       
+umount_SOURCES = umount.c $(mount_common)
 umount_LDADD = $(top_srcdir)/lib/libenv.a
 umount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
 umount_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)