summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-03-10 17:00:35 +0100
committerAndreas Gruenbacher <agruen@suse.de>2009-03-10 17:00:35 +0100
commit604290f79a199eb0c73a0cd05a473e1801a00673 (patch)
treef4dffbaa3223cc48b4585ee4165cbf0211477155 /Makefile
parent541da9910a264b4a0686ad6f77cdba6b0b273b29 (diff)
downloadattr-604290f79a199eb0c73a0cd05a473e1801a00673.tar.gz
More libtoolize fixes
Recent versions of libtool behave slightly differently, which causes some breakage in how libtoolize was used here. Make sure that libtoolize adds the auxiliary files (config.guess and config.sub). Move install-sh into include/ so that libtoolize does not destroy it. Split up the ``make clean'' and ``make distclean'' targets: the former removes all files generated during a build. The latter removes all files generated by libtoolize, autoconf, and configure as well. Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index b472f34..a1a30db 100644
--- a/Makefile
+++ b/Makefile
@@ -9,13 +9,17 @@ ifeq ($(HAVE_BUILDDEFS), yes)
include $(TOPDIR)/include/builddefs
endif
-CONFIGURE = configure include/builddefs include/config.h
-LSRCFILES = configure configure.in aclocal.m4 Makepkgs install-sh exports \
- README VERSION
+CONFIGURE = \
+ aclocal.m4 \
+ configure config.guess config.sub \
+ ltmain.sh m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
+ m4/ltversion.m4 m4/lt~obsolete.m4
+LSRCFILES = \
+ configure.in Makepkgs install-sh exports README VERSION \
+ $(CONFIGURE)
LDIRT = config.log .dep config.status config.cache confdefs.h conftest* \
- Logs/* built .census install.* install-dev.* install-lib.* *.gz \
- config.guess config.sub ltmain.sh libtool
+ Logs/* built .census install.* install-dev.* install-lib.* *.gz
LIB_SUBDIRS = include libmisc libattr
TOOL_SUBDIRS = attr getfattr setfattr examples test m4 man doc po debian build
@@ -41,7 +45,8 @@ clean: # if configure hasn't run, nothing to clean
endif
configure include/builddefs:
- libtoolize -c -f
+ libtoolize -c -i -f
+ cp include/install-sh .
aclocal -I m4
autoconf
./configure \
@@ -84,6 +89,7 @@ install-lib: install $(addsuffix -install-lib,$(SUBDIRS))
realclean distclean: clean
rm -f $(LDIRT) $(CONFIGURE)
+ rm -f include/builddefs include/config.h install-sh libtool
rm -rf autom4te.cache Logs
.PHONY: tests root-tests ext-tests