+++ /dev/null
-GO ?= go
-MAKEINFO ?= makeinfo
-
-GOPATH != pwd
-VERSION != cat VERSION
-
-MOD = go.cypherpunks.ru/gocheese/v2
-LDFLAGS = -X main.Version=$(VERSION)
-
-all: gocheese gocheese.info
-
-gocheese:
- GOPATH=$(GOPATH) go build -o gocheese -ldflags "$(LDFLAGS)" $(MOD)
-
-gocheese.info: *.texi
- $(MAKEINFO) -o $@ gocheese.texi
-
-test:
- GOPATH=$(GOPATH) go test $(MOD)/...
--- /dev/null
+redo-ifchange gocheese gocheese.info
--- /dev/null
+redo-ifchange *.go
+${GO:=go} build -o $3 -ldflags "-X main.Version=`cat VERSION`" go.cypherpunks.ru/gocheese/v2
--- /dev/null
+redo-ifchange *.texi
+${MAKEINFO:=makeinfo} -o $3 gocheese.texi
--- /dev/null
+${GO:=go} test go.cypherpunks.ru/gocheese/v2/... >&2
--- /dev/null
+rm -f gocheese.html/*.html
+${MAKEINFO:=makeinfo} --html \
+ --set-customization-variable CSS_LINES="`cat style.css`" \
+ --set-customization-variable SHOW_TITLE=0 \
+ --set-customization-variable USE_ACCESSKEY=0 \
+ --set-customization-variable DATE_IN_HEADER=1 \
+ --set-customization-variable TOP_NODE_UP_URL=index.html \
+ --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
+ --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
+ -o gocheese.html gocheese.texi
+find gocheese.html -type d -exec chmod 755 {} \;
+find gocheese.html -type f -exec chmod 644 {} \;
+++ /dev/null
-MAKEINFO ?= makeinfo
-
-CSS != cat style.css
-
-all: gocheese.html
-
-gocheese.html: *.texi
- rm -f gocheese.html/*.html
- $(MAKEINFO) --html \
- --set-customization-variable CSS_LINES='$(CSS)' \
- --set-customization-variable SHOW_TITLE=0 \
- --set-customization-variable USE_ACCESSKEY=0 \
- --set-customization-variable DATE_IN_HEADER=1 \
- --set-customization-variable TOP_NODE_UP_URL=index.html \
- --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \
- --set-customization-variable OPEN_QUOTE_SYMBOL=\" \
- -o gocheese.html gocheese.texi