[Zope-CVS] CVS: Packages/WinBuilders/mk - common.mk:1.3.2.4
Tim Peters
tim.one at comcast.net
Tue Feb 3 18:18:13 EST 2004
Update of /cvs-repository/Packages/WinBuilders/mk
In directory cvs.zope.org:/tmp/cvs-serv4826/mk
Modified Files:
Tag: tim-zrs-branch
common.mk
Log Message:
Added a COPY_AND_WINDOWIZE_LINEENDS define to squash massive makefile
duplication.
=== Packages/WinBuilders/mk/common.mk 1.3.2.3 => 1.3.2.4 ===
--- Packages/WinBuilders/mk/common.mk:1.3.2.3 Mon Feb 2 20:01:03 2004
+++ Packages/WinBuilders/mk/common.mk Tue Feb 3 18:18:13 2004
@@ -41,10 +41,26 @@
PRODUCTS_DIR=build/instance/Products
PYLIBDIR=build/instance/lib/python
-
+
ZOPE_CVS_REPOSITORY=:pserver:anonymous at cvs.zope.org:/cvs-repository
CVS=/usr/bin/cvs -z7 -q
CVS_UPDATE=${CVS} update -dP
CVSROOT=:ext:korak.zope.com:/cvs-turbointranet
+
+# Use COPY_AND_WINDOWIZE_LINEENDS like so:
+#
+# destination_path: source_path
+# $(COPY_AND_WINDOWIZE_LINEENDS)
+#
+# Any directories needed to hold destination_path are created. The file
+# is copied from source_path to there, and unix2dos is run on it in its
+# new home. The paths must give file names, not directories; this reflects
+# that renaming of files is often needed in these makefiles.
+define COPY_AND_WINDOWIZE_LINEENDS
+ $(MKDIR) $(@D)
+ $(CP) $< $@
+ unix2dos $@
+ $(TOUCH) $@
+endef
\ No newline at end of file
More information about the Zope-CVS
mailing list