diff options
author | Tim Shimmin <tes@sgi.com> | 2006-07-14 15:34:37 +0000 |
---|---|---|
committer | Tim Shimmin <tes@sgi.com> | 2006-07-14 15:34:37 +0000 |
commit | f7275bf069bd59be9610c5ecd5c6432b604319ef (patch) | |
tree | 1b8325a7c2e11847f01fc7730e59812595661da2 | |
parent | 02bb5e22f9223bd9fcd0e92265c5178a3261f811 (diff) | |
download | attr-f7275bf069bd59be9610c5ecd5c6432b604319ef.tar.gz |
fix make depend for libtool libraries
Merge of master-melb:xfs-cmds:26539a by kenmcd.
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/CHANGES | 3 | ||||
-rw-r--r-- | include/buildrules | 20 |
3 files changed, 18 insertions, 7 deletions
@@ -3,5 +3,5 @@ # PKG_MAJOR=2 PKG_MINOR=4 -PKG_REVISION=33 +PKG_REVISION=34 PKG_BUILD=0 diff --git a/doc/CHANGES b/doc/CHANGES index 6541b8e..53f1a7d 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -1,3 +1,6 @@ +attr-2.4.34 (14 July 2006) + - Fix issues with makedepend on libtool libraries. + attr-2.4.33 (03 July 2006) - Update translation Makefile to work better with the Ubuntu translation system. Thanks to feedback from Martin Pitt. diff --git a/include/buildrules b/include/buildrules index 41aaef5..4a91fee 100644 --- a/include/buildrules +++ b/include/buildrules @@ -58,20 +58,28 @@ $(_FORCE): .PHONY : depend -depend : $(CFILES) $(HFILES) - $(SUBDIRS_MAKERULE) - touch .dep - $(MAKEDEPEND) $(DEPENDFLAGS) -f - -- $(CFLAGS) -- $(CFILES) | \ +DEPENDSCRIPT := $(MAKEDEPEND) $(DEPENDFLAGS) -f - -- $(CFLAGS) -- $(CFILES) | \ $(SED) -e 's,`pwd`,$(TOPDIR),g' \ -e 's, */[^ ]*,,g' \ -e '/^[^ ]*: *$$/d' \ - -e '/^#.*/d' -e '/^ *$$/d' \ - > .dep + -e '/^ *$$/d' + +ifdef LTLIBRARY +DEPENDSCRIPT := $(DEPENDSCRIPT) | $(SED) -e 's,^\([^:]*\)\.o,\1.lo,' +endif + +depend : $(CFILES) $(HFILES) + $(SUBDIRS_MAKERULE) + $(DEPENDSCRIPT) > .dep test -s .dep || rm -f .dep # Include dep, but only if it exists ifeq ($(shell test -f .dep && echo .dep), .dep) include .dep else +ifdef LTLIBRARY +$(LTOBJECTS): $(HFILES) +else $(OBJECTS): $(HFILES) endif +endif |