From be35bf7830c95b5c98779f35068b99396c32b6c7 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 27 Jul 2006 03:43:19 +0000 Subject: [PATCH] Generate Makefile.inc automatically git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3186 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/win32/Makefile | 6 +++++- bacula/src/win32/Makefile.inc.cross | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bacula/src/win32/Makefile b/bacula/src/win32/Makefile index 9359df8a81..9775382d07 100644 --- a/bacula/src/win32/Makefile +++ b/bacula/src/win32/Makefile @@ -10,7 +10,7 @@ DIRS= dll \ .PHONY: $(DIRS) clean all -all: $(DIRS) +all: Makefile.inc $(DIRS) clean: $(DIRS) $(ECHO_CMD)-rmdir release @@ -21,3 +21,7 @@ $(DIRS): else \ echo -e "\n!!!!! Make of $@ failed !!!!!\n\n" ; \ fi + +Makefile.inc: Makefile.inc.cross + @echo Creating $@ + $(ECHO_CMD)sed -e "s^@TOPDIR@^`(cd ../../..;pwd)`^" < Makefile.inc.cross > $@ diff --git a/bacula/src/win32/Makefile.inc.cross b/bacula/src/win32/Makefile.inc.cross index 0e9896f0ef..31a509ed18 100644 --- a/bacula/src/win32/Makefile.inc.cross +++ b/bacula/src/win32/Makefile.inc.cross @@ -9,8 +9,8 @@ ECHO_CMD = @ -TOPDIR = /home/robert/src/bacula-w32 -DEPKGS = $(TOPDIR)/depkgs-test +TOPDIR = @TOPDIR@ +DEPKGS = $(TOPDIR)/depkgs-mingw32 MINGW_BIN = $(TOPDIR)/cross-tools/mingw32/bin MINGW_INCLUDE = $(TOPDIR)/cross-tools/mingw32/mingw32/include -- 2.39.5