| @@ -79,26 +79,29 @@ tentinyblock.in: | | | @@ -79,26 +79,29 @@ tentinyblock.in: |
79 | | | 79 | |
80 | CHECKS+= check-pipe-restart | | 80 | CHECKS+= check-pipe-restart |
81 | CLEANFILES+= piperestart.in piperestart.in.tmp | | 81 | CLEANFILES+= piperestart.in piperestart.in.tmp |
82 | CLEANFILES+= piperestart.cl2 piperestart.cl2.tmp | | 82 | CLEANFILES+= piperestart.cl2 piperestart.cl2.tmp |
83 | CLEANFILES+= piperestart.cl2restart piperestart.cl2restart.tmp | | 83 | CLEANFILES+= piperestart.cl2restart piperestart.cl2restart.tmp |
84 | CLEANFILES+= piperestart.cl2part piperestart.cl2part.tmp | | 84 | CLEANFILES+= piperestart.cl2part piperestart.cl2part.tmp |
85 | check-pipe-restart: .PHONY piperestart.cl2 piperestart.cl2restart | | 85 | check-pipe-restart: .PHONY piperestart.cl2 piperestart.cl2restart |
86 | cmp ${.ALLSRC} | | 86 | cmp ${.ALLSRC} |
87 | piperestart.cl2restart: piperestart.cl2part vndcompress | | 87 | piperestart.cl2restart: piperestart.cl2part vndcompress |
88 | cp piperestart.cl2part ${.TARGET}.tmp \ | | 88 | cp piperestart.cl2part ${.TARGET}.tmp \ |
89 | && head -c 700000 < /usr/share/dict/words \ | | 89 | && head -c 700000 < /usr/share/dict/words \ |
90 | | ./vndcompress -l 655360 -k 1 -rR /dev/stdin ${.TARGET}.tmp \ | | 90 | | ./vndcompress -l 655360 -k 1 -rR /dev/stdin ${.TARGET}.tmp \ |
91 | && mv -f ${.TARGET}.tmp ${.TARGET} | | 91 | && mv -f ${.TARGET}.tmp ${.TARGET} |
| | | 92 | # The following rule uses ; and not && on purpose: vndcompress is |
| | | 93 | # supposed to fail (and it is even OK to interrupt!) so we can restart |
| | | 94 | # and fill in the rest. |
92 | piperestart.cl2part: vndcompress | | 95 | piperestart.cl2part: vndcompress |
93 | head -c 600000 < /usr/share/dict/words \ | | 96 | head -c 600000 < /usr/share/dict/words \ |
94 | | ./vndcompress -l 655360 -k 1 /dev/stdin ${.TARGET}.tmp; \ | | 97 | | ./vndcompress -l 655360 -k 1 /dev/stdin ${.TARGET}.tmp; \ |
95 | mv -f ${.TARGET}.tmp ${.TARGET} | | 98 | mv -f ${.TARGET}.tmp ${.TARGET} |
96 | piperestart.in: | | 99 | piperestart.in: |
97 | head -c 655360 < /usr/share/dict/words > ${.TARGET}.tmp \ | | 100 | head -c 655360 < /usr/share/dict/words > ${.TARGET}.tmp \ |
98 | && mv -f ${.TARGET}.tmp ${.TARGET} | | 101 | && mv -f ${.TARGET}.tmp ${.TARGET} |
99 | | | 102 | |
100 | CHECKS+= check-part | | 103 | CHECKS+= check-part |
101 | CLEANFILES+= part.orig part.cl2part part.cl2 part.out | | 104 | CLEANFILES+= part.orig part.cl2part part.cl2 part.out |
102 | check-part: .PHONY part.orig part.out | | 105 | check-part: .PHONY part.orig part.out |
103 | cmp part.orig part.out | | 106 | cmp part.orig part.out |
104 | part.cl2: part.orig part.cl2part vndcompress | | 107 | part.cl2: part.orig part.cl2part vndcompress |