summaryrefslogtreecommitdiff
path: root/src/nslcd_proto/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-12 10:35:52 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-12 10:35:52 -0600
commite8199ec88c7ca8107c4fb9238e383a4a9eb981ee (patch)
tree250c514c0cb4ec2b8bd442f4e80e916fb8ad6f2c /src/nslcd_proto/Makefile
parentf0302e1ac1a12711a9f49c3d7a62bcdfcaca7eed (diff)
Derp, channels and goroutines are enumerators
Diffstat (limited to 'src/nslcd_proto/Makefile')
-rw-r--r--src/nslcd_proto/Makefile12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/nslcd_proto/Makefile b/src/nslcd_proto/Makefile
index 52e58f5..9e3ba4e 100644
--- a/src/nslcd_proto/Makefile
+++ b/src/nslcd_proto/Makefile
@@ -2,7 +2,7 @@ _ := $(MAKEFILE_LIST)
d := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
generate := $(generate) $d/interface_backend.go $d/func_handlerequest.go $d/util/struct_null_backend.go
-secondary := $(secondary) $d/enumerator-list.mk $d/requests.txt $d/responses.txt $d/*@*.go $d/util/*@*.go
+secondary := $d/requests.txt
ifeq (,$(filter clean,$(MAKECMDGOALS)))
-include $d/enumerator-list.mk
@@ -25,18 +25,8 @@ clean:
endif
-$d/enumerator@%.go: $d/enumerator@T.got
- < $< sed 's/<T>/$*/g' > $@
-$d/util/enumerator@%.go: $d/util/enumerator@T.got
- < $< sed 's/<T>/$*/g' > $@
-
-$d/enumerator-list.mk: $d/responses.txt $d/Makefile
- < $< sed -rn 's|.*|generate += $$d/enumerator@&.go $$d/util/enumerator@&.go|p' > $@
-
$d/requests.txt: $d/nslcd_h.go $d/Makefile
< $< grep -Eo '\btype Request_([^_ ]+)(_\S+)?' | sed 's/^type Request_//' > $@
-$d/responses.txt: $d/interface_backend.go $d/Makefile
- < $< sed -rn 's/.* (\S+)_Enumerator$$/\1/p' | sort -u > $@
%.go: %.go.sh
./$^ > $@