From 45d1bbe9cbb39139b5cdf193e75e8d8c094e02e3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 30 May 2007 20:55:02 +0200 Subject: [PATCH] fdisk: Makefile.am refactoring Signed-off-by: Karel Zak --- fdisk/Makefile.am | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/fdisk/Makefile.am b/fdisk/Makefile.am index 38d1ed2f..1e4ad02d 100644 --- a/fdisk/Makefile.am +++ b/fdisk/Makefile.am @@ -2,36 +2,37 @@ include $(top_srcdir)/config/include-Makefile.am EXTRA_DIST = README.fdisk README.cfdisk sfdisk.examples partitiontype.c +fdisk_common = disksize.c i386_sys_types.c common.h + 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 \ - common.h fdisk.h fdisksunlabel.h fdisksgilabel.h fdiskaixlabel.h \ - fdiskbsdlabel.h +fdisk_SOURCES = fdisk.c fdiskbsdlabel.c fdisksgilabel.c \ + fdisksunlabel.c fdiskaixlabel.c partname.c \ + fdisk.h fdisksunlabel.h fdisksgilabel.h fdiskaixlabel.h \ + fdiskbsdlabel.h $(fdisk_common) if !SPARC sbin_PROGRAMS += sfdisk man_MANS += sfdisk.8 -sfdisk_SOURCES = sfdisk.c disksize.c i386_sys_types.c partname.c common.h +sfdisk_SOURCES = sfdisk.c partname.c $(fdisk_common) if USE_SLANG sbin_PROGRAMS += cfdisk man_MANS += cfdisk.8 -cfdisk_SOURCES = cfdisk.c disksize.c i386_sys_types.c common.h +cfdisk_SOURCES = cfdisk.c $(fdisk_common) cfdisk_LDADD = -lslang else if HAVE_NCURSES sbin_PROGRAMS += cfdisk man_MANS += cfdisk.8 -cfdisk_SOURCES = cfdisk.c disksize.c i386_sys_types.c common.h +cfdisk_SOURCES = cfdisk.c $(fdisk_common) cfdisk_LDADD = -lncurses endif endif -endif - -endif +endif # !SPARC +endif # !M68K -- 2.39.5