diff options
Diffstat (limited to 'src/nslcd_proto/Makefile')
-rw-r--r-- | src/nslcd_proto/Makefile | 12 |
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 ./$^ > $@ |