aboutsummaryrefslogtreecommitdiffstats
path: root/quota
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2010-01-21 07:43:18 +0000
committerAlex Elder <aelder@sgi.com>2010-01-21 16:52:08 -0600
commitd932088133369917b0407cb6dd145b2624528f16 (patch)
tree8395d3db04ad9aef8629a22c7960cd8ed8f8c9b2 /quota
parent98566312c12da172111134294ea3a50d3ec94c4a (diff)
downloadxfsprogs-dev-d932088133369917b0407cb6dd145b2624528f16.tar.gz
xfsprogs: Automatic build dependency calculations
Currently the xfsprogs builds do not have any automatic dependency calculations. It relies on a separate make depend run to build or update dependency information. It also relies on an external makedepend binary. If that binary does not exist, the dependencies do not get calculated. To remove the dependency on makedepend, gcc can be used instead as it has a command to generate dependency information. This patch changes the dependency rule building to use gcc. In case anyone uses an old (several years) gcc compiler or a compiler that doesn't support gcc compatible dependency generation, a new configure check is added to turn off dependency checking so builds can still be done. To use the dependencies automatically, we need to use a special include makefile directive to include the build dependencies into the current makefile. Essentially once the dependencies are calculated, they can be included into the makefile and make will recalculate the build dependencies automatically based on that information. Hence we get a build that automatically calculates and keeps dependencies up to date without dependence on any external tools. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'quota')
-rw-r--r--quota/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/quota/Makefile b/quota/Makefile
index 7aedd562d2..9c6411ed3e 100644
--- a/quota/Makefile
+++ b/quota/Makefile
@@ -28,7 +28,7 @@ LLDLIBS += $(LIBEDITLINE) $(LIBTERMCAP)
CFLAGS += -DENABLE_EDITLINE
endif
-default: $(LTCOMMAND)
+default: depend $(LTCOMMAND)
include $(BUILDRULES)
@@ -36,3 +36,5 @@ install: default
$(INSTALL) -m 755 -d $(PKG_SBIN_DIR)
$(LTINSTALL) -m 755 $(LTCOMMAND) $(PKG_SBIN_DIR)
install-dev:
+
+-include .dep