summaryrefslogtreecommitdiff
path: root/src/nslcd-proto/Makefile
blob: fce3d2f6364f8601f9d9d9298c75f70e19540774 (plain)
1
2
3
4
5
6
7
8
9
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: