com gtk/php-gtk: There doesn't seem to be a way of picking up commandline arguments within NMAKE. This is the next best thing.: win32/confutils.js
| From: | David Soria Parra | Date: | Sat, 24 Sep 2005 18:31:25 +0000 |
| Subject: | com gtk/php-gtk: There doesn't seem to be a way of picking up commandline arguments within NMAKE. This is the next best thing.: win32/confutils.js | ||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-4807@lists.php.net to get a copy of this message | ||
Commit: 4c79038235e2a49ed951a9cb72d229806983593e
Author: Steph Fox <sfox@php.net> Sat, 24 Sep 2005 18:31:25 +0000
Parents: 1349bae114b0bb72fc5c51665a48f0a1395c3adc
Branches: master
Link: http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=4c79038235e2a49ed951a9cb72d229806983593e
Log:
There doesn't seem to be a way of picking up commandline arguments within NMAKE.
This is the next best thing.
Changed paths:
M win32/confutils.js
Diff:
4c79038235e2a49ed951a9cb72d229806983593e
diff --git a/win32/confutils.js b/win32/confutils.js
index 4402619..52bb6cc 100644
--- a/win32/confutils.js
+++ b/win32/confutils.js
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-// $Id: confutils.js,v 1.13 2005-09-24 14:39:51 sfox Exp $
+// $Id: confutils.js,v 1.14 2005-09-24 18:31:25 sfox Exp $
/* set vars */
var STDOUT = WScript.StdOut;
@@ -964,9 +964,18 @@ function generate_makefile() {
MF.WriteLine("all: $(EXT_TARGETS)");
for (i = 0; i < make_builds.length; i++) {
+ if (i == 1 && make_builds.length > 1) {
+ MF.WriteLine("!IF EXIST($(BUILD_DIR)\\$(PHPGTKLIB))");
+ }
MF.WriteLine(make_builds[i]);
}
+ if (make_builds.length > 1) {
+ MF.WriteLine("!ELSE");
+ MF.WriteLine("!MESSAGE Note: $(PHPGTKLIB) must be created before PHP-GTK extensions can be
built");
+ MF.WriteLine("!ENDIF");
+ }
+
MF.WriteLine("build_dirs: $(BUILD_DIR) $(BUILD_DIRS_SUB)");
MF.WriteBlankLines(1);