Skip to contentSkip to conversation

xfsprogs: keep autoconf-generated files over make distclean

PATCH New Christoph Hellwig 1 participant 1 message Apr 16, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsprogs: keep autoconf-generated files over make distclean

We do want to ship the autoconf-generated files over make distclean and pick them up in Makepkgs so that a user compiling the program doesn't require autoconf.

For that split up make distclean from make realclean and exclude the files we want to keep form the former.

To make this easier to maintain adher to stricter rules of use for CONFIGURE and LDIRT. CONFIGURE now includes all generated files from autoconf (or for it like our copied install-sh) and gets only removed on make realclean, but added to LSRCFILES so that Makepkgs can pick it up. Everything else than needs to be removed on a realclean gets assigned to LDIRT.

Makefile +10 -8
Index: xfsprogs-dev/Makefile
===================================================================
@@ -10,13 +10,14 @@ include $(TOPDIR)/include/builddefs
 endif
 
 CONFIGURE = aclocal.m4 configure config.guess config.sub \
+	    libtool configure install-sh \
+	    include/builddefs include/platform_defs.h \
 	    ltmain.sh m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
-	    m4/ltversion.m4 m4/lt~obsolete.m4 \
-	    include/builddefs include/platform_defs.h
-LSRCFILES = configure.in Makepkgs install-sh README VERSION $(CONFIGURE)
+	    m4/ltversion.m4 m4/lt~obsolete.m4
+LSRCFILES = configure.in Makepkgs README VERSION $(CONFIGURE)
 
 LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
-	Logs/* built .census install.* install-dev.* *.gz
+	Logs/* built .census install.* install-dev.* *.gz autom4te.cache/*
 
 LIB_SUBDIRS = libxfs libxlog libxcmd libhandle libdisk
 TOOL_SUBDIRS = copy db estimate fsck fsr growfs io logprint mkfs quota \
@@ -96,7 +97,8 @@ install-qa: install $(addsuffix -install
 %-install-qa:
 	$(MAKE) -C $* install-qa
 
-realclean distclean: clean
-	rm -f $(LDIRT) $(CONFIGURE)
-	rm -f include/builddefs include/config.h install-sh libtool
-	rm -rf autom4te.cache Logs
+distclean: clean
+	rm -f $(LDIRT)
+
+realclean: distclean
+	rm -f $(CONFIGURE)

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs