[Zope-CVS] CVS: Packages/WinBuilders/mk - spread.mk:1.1.2.2
Tim Peters
tim.one at comcast.net
Tue Feb 3 18:20:12 EST 2004
Update of /cvs-repository/Packages/WinBuilders/mk
In directory cvs.zope.org:/tmp/cvs-serv5344/mk
Modified Files:
Tag: tim-zrs-branch
spread.mk
Log Message:
Install Spread's license, readme, and sample spread.conf into doc/.
=== Packages/WinBuilders/mk/spread.mk 1.1.2.1 => 1.1.2.2 ===
--- Packages/WinBuilders/mk/spread.mk:1.1.2.1 Mon Feb 2 21:20:56 2004
+++ Packages/WinBuilders/mk/spread.mk Tue Feb 3 18:20:11 2004
@@ -1,6 +1,5 @@
# Justs repackages the Spread binaries.
-# Puts binaries into build/bin.
-# XXX We should include Spread's sample.spread.conf. Where to put it?
+# Puts binaries into build/bin, and some docs into build/doc.
# See README.txt for system requirements.
@@ -23,17 +22,40 @@
$(TAR) -C "$(SRC_DIR)" -xvzf tmp/$(SPREAD_ARCHIVE)
$(TOUCH) $@
-# Copy the Windows stuff from src/ into build/bin/.
-install_spread: $(BUILD_DIR)/bin/spread.exe
+# A dumb trick so we don't unpack the tarball multiple times.
+$(SRC_DIR)/$(SPREAD_DIR)/doc.txt \
+$(SRC_DIR)/$(SPREAD_DIR)/license.txt \
+$(SRC_DIR)/$(SPREAD_DIR)/Readme.txt \
+$(SRC_DIR)/$(SPREAD_DIR)/sample.spread.conf \
+ : $(SRC_DIR)/$(SPREAD_DIR)/win/spread.exe
+ $(TOUCH) $@
-$(BUILD_DIR)/bin/spread.exe: $(SRC_DIR)/$(SPREAD_DIR)/win/spread.exe
- $(MKDIR) "$(BUILD_DIR)"
- $(MKDIR) "$(BUILD_DIR)/bin"
-
- $(CP) "$(SRC_DIR)/$(SPREAD_DIR)/win/spread.exe" \
- "$(SRC_DIR)/$(SPREAD_DIR)/win/sprecv.exe" \
- "$(SRC_DIR)/$(SPREAD_DIR)/win/spsend.exe" \
- "$(SRC_DIR)/$(SPREAD_DIR)/win/sptuser.exe" \
- "$(SRC_DIR)/$(SPREAD_DIR)/win/spflooder.exe" \
- "$(BUILD_DIR)/bin"
+# Copy the Windows stuff from src/ into build/bin/ and build/doc
+install_spread: $(BUILD_DIR)/bin/spread.exe \
+ $(BUILD_DIR)/bin/sprecv.exe \
+ $(BUILD_DIR)/bin/spsend.exe \
+ $(BUILD_DIR)/bin/sptuser.exe \
+ $(BUILD_DIR)/bin/spflooder.exe \
+ $(BUILD_DIR)/doc/SPREAD_LICENSE.txt \
+ $(BUILD_DIR)/doc/SPREAD_README.txt \
+ $(BUILD_DIR)/doc/sample.spread.conf
+
+
+$(BUILD_DIR)/bin/spread.exe \
+$(BUILD_DIR)/bin/sprecv.exe \
+$(BUILD_DIR)/bin/spsend.exe \
+$(BUILD_DIR)/bin/sptuser.exe \
+$(BUILD_DIR)/bin/spflooder.exe : $(BUILD_DIR)/bin/% : \
+ $(SRC_DIR)/$(SPREAD_DIR)/win/%
+ $(MKDIR) $(@D)
+ $(CP) $< $@
$(TOUCH) $@
+
+$(BUILD_DIR)/doc/SPREAD_LICENSE.txt: $(SRC_DIR)/$(SPREAD_DIR)/license.txt
+ $(COPY_AND_WINDOWIZE_LINEENDS)
+
+$(BUILD_DIR)/doc/SPREAD_README.txt: $(SRC_DIR)/$(SPREAD_DIR)/Readme.txt
+ $(COPY_AND_WINDOWIZE_LINEENDS)
+
+$(BUILD_DIR)/doc/sample.spread.conf: $(SRC_DIR)/$(SPREAD_DIR)/sample.spread.conf
+ $(COPY_AND_WINDOWIZE_LINEENDS)
More information about the Zope-CVS
mailing list