Commit ad99f144 authored by Nils Goroll's avatar Nils Goroll

libvcc/generate.py creates code all over the place

so tell make in lib/libvcc how to invoke it.

Exposed by 062234c1: Now code changes
(as when switching branches) may require a rebuild in lib/libvcc only
parent 062234c1
......@@ -98,11 +98,12 @@ nobase_noinst_HEADERS = \
vtcp.h \
vtree.h
## keep in sync with lib/libvcc/Makefile.am
vmod_abi.h: \
$(top_srcdir)/lib/libvcc/generate.py \
$(top_srcdir)/include/vdef.h \
$(top_srcdir)/include/vrt.h
mkdir -p tbl
mkdir -p $(top_builddir)/include/tbl
@PYTHON@ $(top_srcdir)/lib/libvcc/generate.py \
$(top_srcdir) $(top_builddir)
......
......@@ -39,9 +39,23 @@ dist_pkgdata_SCRIPTS = \
vmodtool.py \
vsctool.py
vcc_obj.c vcc_fixed_token.c vcc_token_defs.h: \
$(top_builddir)/include/vcl.h
## keep in sync with include/Makefile.am
vcc_obj.c: \
$(top_srcdir)/lib/libvcc/generate.py \
$(top_srcdir)/include/vdef.h \
$(top_srcdir)/include/vrt.h
mkdir -p $(top_builddir)/include/tbl
@PYTHON@ $(top_srcdir)/lib/libvcc/generate.py \
$(top_srcdir) $(top_builddir)
GEN_H = \
vcc_fixed_token.c \
vcc_token_defs.h
$(GEN_H): vcc_obj.c
GENERATED_H = vcc_obj.c $(GEN_H)
BUILT_SOURCES = $(GENERATED_H)
CLEANFILES = $(builddir)/vcc_token_defs.h \
$(builddir)/vcc_fixed_token.c \
$(builddir)/vcc_obj.c
MAINTAINERCLEANFILES = $(GENERATED_H)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment