summaryrefslogtreecommitdiff
path: root/src/nslcd-proto/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-08-25 14:19:33 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-25 14:19:33 -0600
commit75c89781ab3ed908307920e4acdeb86f275f2faa (patch)
treee9cf634a2d1990949b915bc17e6d48b8c3f4322a /src/nslcd-proto/Makefile
initial commit
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: