]> git.sur5r.net Git - bacula/bacula/commitdiff
Generate Makefile.inc automatically
authorRobert Nelson <robertn@the-nelsons.org>
Thu, 27 Jul 2006 03:43:19 +0000 (03:43 +0000)
committerRobert Nelson <robertn@the-nelsons.org>
Thu, 27 Jul 2006 03:43:19 +0000 (03:43 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3186 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/win32/Makefile
bacula/src/win32/Makefile.inc.cross

index 9359df8a81f8fd7ffa0f314f1f1c42afd0290711..9775382d077ca6f1a3de1618abe00db976d53d2f 100644 (file)
@@ -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 > $@
index 0e9896f0efd9c73233197d76ecc5522b73f07c14..31a509ed1835ae5b45befa3e5d3ea3ae5c8d8dbf 100644 (file)
@@ -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