summaryrefslogtreecommitdiff
path: root/src/nslcd-proto/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/nslcd-proto/Makefile')
-rw-r--r--src/nslcd-proto/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nslcd-proto/Makefile b/src/nslcd-proto/Makefile
new file mode 100644
index 0000000..fce3d2f
--- /dev/null
+++ b/src/nslcd-proto/Makefile
@@ -0,0 +1,10 @@
+backend.go: structures.go Makefile
+ { \
+ echo 'package nslcd_proto' && \
+ echo 'type Backend interface {' && \
+ sed -rn 's/^type Request_([^_ ]+)(_\S+)?.*/\1\2(Request_\1\2) []\1/p' $< | grep -v PAM && \
+ sed -rn 's/^type Request_(PAM)(_\S+)?.*/\1\2(Request_\1\2) []\1\2/p' $< && \
+ echo '}' && \
+ :; } | gofmt > $@
+
+.DELETE_ON_ERROR: