~roger-booth/mysql-proxy/laminator

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SUBDIRS=\
	admin \
	proxy \
	replicant \
	debug 
# the cli plugin needs readline and we don't have it on all platforms
# cli

EXTRA_DIST=CMakeLists.txt

check-local:
	mkdir -p $(top_builddir)/plugins/; 
	for plugin in $(SUBDIRS); do \
		for i in `cat $(top_builddir)/plugins/$$plugin/.libs/lib$$plugin.la | grep '^library_names' | sed "s/.*=//;s/'//g"`; do \
			echo $$i; \
			ln -fs $(top_builddir)/plugins/$$plugin/.libs/$$i $(top_builddir)/plugins/$$i; \
		done; \
	done;

clean-local:
	## remove left-overs from the check-local hack in the plugings