X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2FMakefile-files;h=cb277317d5859914ea6ee8dfb51e89d9ff0003c7;hb=61a95befd1830137b0d817da60869f23f63d9540;hp=e50416672a85a82131ea1a9974dc7fcaff42e422;hpb=b6e49b3a7d123c5616559e1016bed82a78c9ee58;p=util-vserver.git diff --git a/python/Makefile-files b/python/Makefile-files index e504166..cb27731 100644 --- a/python/Makefile-files +++ b/python/Makefile-files @@ -24,11 +24,11 @@ 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 }' \ + $(CTAGS) -x $(top_srcdir)/lib/vserver.h | \ + $(AWK) -f $(top_srcdir)/python/ctags-constants.awk \ > $(top_builddir)/python/_libvserver-constants.c