From: Karel Zak Date: Wed, 30 May 2007 18:55:02 +0000 (+0200) Subject: fdisk: Makefile.am refactoring X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45d1bbe9cbb39139b5cdf193e75e8d8c094e02e3;p=util-linux fdisk: Makefile.am refactoring Signed-off-by: Karel Zak --- 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