From 4cd981c275bd28665ed597b1ca8c5f6d86cc3571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Wed, 19 Feb 2014 22:31:41 +0000 Subject: [PATCH] fix tags & depend --- Makefile.in | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 1650795ca..682c5ba46 100755 --- a/Makefile.in +++ b/Makefile.in @@ -598,12 +598,20 @@ install_library: @YAPLIB@ for h in $(HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done ########## +FULL_PATH_C_SOURCES=$(addprefix $(srcdir)/, $(C_SOURCES) ) +FULL_PATH_PL_SOURCES=$(addprefix $(srcdir)/, $(PL_SOURCES) ) +FULL_PATH_HEADERS=$(addprefix $(srcdir)/, $(HEADERS) ) + TAGS: $(C_SOURCES) $(PL_SOURCES) $(HEADERS) - etags $(C_SOURCES) $(PL_SOURCES) $(HEADERS) + etags $(FULL_PATH_C_SOURCES) $(FULL_PATH_PL_SOURCES) $(FULL_PATH_HEADERS) + for p in $(PACKAGES); do \ + echo " ============== INSTALLING" $$p; \ + if [ -r $$p/Makefile ]; then $(MAKE) -C $$p TAGS || exit 1; fi; \ + done depend: $(HEADERS) $(C_SOURCES) -@if test "$(GCC)" = yes; then\ - $(CC) -MM $(CFLAGS) -D__YAP_NOT_INSTALLED__=1 -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/os $(C_SOURCES) >> Makefile;\ + $(CC) -MM $(CFLAGS) -D__YAP_NOT_INSTALLED__=1 -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/os $(FULL_PATH_C_SOURCES) >> Makefile;\ else\ makedepend -f - -- $(CFLAGS) -Iinclude -- $(C_SOURCES) |\ sed 's|.*/\([^:]*\):|\1:|' >> Makefile ;\