##
pyexec_LTLIBRARIES += python/_libvserver.la
+pyexec_SCRIPTS += python/libvserver.py
python__libvserver_la_SOURCES = python/_libvserver.c
python__libvserver_la_CFLAGS = $(AM_CFLAGS) $(PYTHON_CFLAGS) \
-I$(top_builddir)/python
# FIXME: Dude, this is ugly.
python/_libvserver.c: $(top_builddir)/python/_libvserver-constants.c
-$(top_builddir)/python/_libvserver-constants.c: lib/vserver.h
+$(top_builddir)/python/_libvserver-constants.c: lib/vserver.h \
+ $(top_srcdir)/python/ctags-constants.awk
$(CTAGS) -x $(top_srcdir)/lib/vserver.h | \
$(AWK) -f $(top_srcdir)/python/ctags-constants.awk \
> $(top_builddir)/python/_libvserver-constants.c
+
+CLEANFILES += python/_libvserver-constants.c