Reinstate specific rules to copy VERSION and NEWS into $(DEST).
authorMike Taylor <mike@indexdata.com>
Tue, 11 Nov 2014 12:42:08 +0000 (12:42 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 11 Nov 2014 12:42:08 +0000 (12:42 +0000)
This was no longer being done as Jason found the generic rule was
causing problems with GNU Make 4.0, and removed it. (I wonder how he
was getting the build to succeed, then?)

src/Makefile

index f2f10b9..166db58 100644 (file)
@@ -79,6 +79,16 @@ $(DEST)/${PP2_FILE}:
        curl -sSf "${PP2_URL}" -o $@.tmp
        mv -f $@.tmp $@
 
        curl -sSf "${PP2_URL}" -o $@.tmp
        mv -f $@.tmp $@
 
+$(DEST)/NEWS: NEWS
+       rm -f $@
+       cp $? $@
+       chmod 444 $@
+
+$(DEST)/VERSION: VERSION
+       rm -f $@
+       cp $? $@
+       chmod 444 $@
+
 release: $(RELEASABLE)
        @if [ -f ${DEST}/releases/mkws-$(VERSION).js ]; then \
                echo "*** There is already a release $(VERSION)"; \
 release: $(RELEASABLE)
        @if [ -f ${DEST}/releases/mkws-$(VERSION).js ]; then \
                echo "*** There is already a release $(VERSION)"; \