X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2FMakefile-files;h=9f6a1644f28817275e4cf1ea55dbd6a645fe82cd;hb=e1e2fc816a156709191af5d4a3a141128d02a92b;hp=e50416672a85a82131ea1a9974dc7fcaff42e422;hpb=0754ac0a3b5ac2cc77cbb0cb85c6f8888459d1f6;p=util-vserver.git diff --git a/python/Makefile-files b/python/Makefile-files index e504166..9f6a164 100644 --- a/python/Makefile-files +++ b/python/Makefile-files @@ -24,11 +24,12 @@ python__libvserver_la_CFLAGS = $(AM_CFLAGS) $(PYTHON_CFLAGS) \ python__libvserver_la_LDFLAGS = -module -avoid-version $(PYTHON_LDFLAGS) python__libvserver_la_LIBADD = $(LIBVSERVER_GLIBC) +EXTRA_DIST += python/ctags-constants.awk + # FIXME: Dude, this is ugly. python/_libvserver.c: $(top_builddir)/python/_libvserver-constants.c -$(top_builddir)/python/_libvserver-constants.c: lib/vserver.h - ctags -x $(top_srcdir)/lib/vserver.h | \ - awk '$$2 == "macro" || $$2 == "enumerator" { print $$1 }' | \ - egrep '^(vc|VC|CLONE)' | grep -v VC_ATTR_ | \ - awk '{ printf " PyModule_AddIntConstant(mod, \"%s\", %s);\n", $$1, $$1 }' \ +$(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