Adding individule nmake commands to Makefile
| From: | Tom Rogers | Date: | Sat, 24 Sep 2005 06:43:56 +0000 |
| Subject: | Adding individule nmake commands to Makefile | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-1695@lists.php.net to get a copy of this message | ||
Hi
Here is a change that will let you do an individual make like:
nmake libglade
RCS file: /repository/php-gtk/win32/confutils.js,v
retrieving revision 1.11
diff -u -w -b -r1.11 confutils.js
--- confutils.js 23 Sep 2005 10:08:03 -0000 1.11
+++ confutils.js 24 Sep 2005 06:37:18 -0000
@@ -43,7 +43,7 @@
configure_hdr = WScript.CreateObject("Scripting.Dictionary");
build_dirs = new Array();
-
+make_builds = new Array();
extension_include_code = "";
extension_module_ptrs = "";
@@ -665,6 +665,7 @@
var ld = "@$(LD)";
ADD_FLAG("EXT_TARGETS", "$(BUILD_DIR)\\"+dllname);
+ make_builds[make_builds.length] = extname+": $(BUILD_DIR)\\"+dllname;
MFO.WriteLine("$(BUILD_DIR)\\" + dllname + ": $(" + EXT +
"_GLOBAL_OBJS)" + res_var);
MFO.WriteLine("\t" + ld + " /out:$(BUILD_DIR)\\" + dllname + "
$(" + EXT + "_LDFLAGS)" + dllflags + " $(LDFLAGS) $(" + EXT +
"_GLOBAL_OBJS) $(LIBS_" + EXT + ")" + dep_libs + " $(LIBS)" +
res_var);
@@ -966,6 +967,11 @@
MF.WriteBlankLines(1);
MF.WriteLine("all: $(EXT_TARGETS)");
+
+ for(i = 0; i < make_builds.length; i++){
+ MF.WriteLine(make_builds[i]);
+ }
+
MF.WriteLine("build_dirs: $(BUILD_DIR) $(BUILD_DIRS_SUB)");
MF.WriteBlankLines(1);
--
Tom