New script to create `structures.h' which will be used in language
1999-12-05 Martin Baulig <martin@home-of-linux.org> * lib/structures.pl: New script to create `structures.h' which will be used in language bindings code.
This commit is contained in:
committed by
Martin Baulig
parent
4dccb636e2
commit
117af5f59b
@@ -10,13 +10,20 @@ libgtop_la_SOURCES = init.c open.c close.c command.c read.c \
|
||||
|
||||
libgtop_la_LDFLAGS = $(LT_VERSION_INFO)
|
||||
|
||||
BUILT_SOURCES = lib.c
|
||||
BUILT_SOURCES = lib.c structures.h
|
||||
|
||||
lib.c: lib.pl $(top_builddir)/config.h $(top_srcdir)/features.def $(top_srcdir)/scripts/c_types.pl
|
||||
$(PERL) -I $(top_srcdir)/scripts $(srcdir)/lib.pl < $(top_srcdir)/features.def > lib-t
|
||||
mv lib-t lib.c
|
||||
|
||||
structures.h: structures.pl $(top_builddir)/config.h \
|
||||
$(top_srcdir)/features.def $(top_srcdir)/structures.def
|
||||
$(PERL) -I $(top_srcdir)/scripts $(srcdir)/structures.pl \
|
||||
$(top_srcdir)/features.def $(top_srcdir)/structures.def \
|
||||
structures.h > tmp-s
|
||||
mv tmp-s structures.h
|
||||
|
||||
EXTRA_DIST = lib.pl
|
||||
|
||||
CLEANFILES = lib.c
|
||||
CLEANFILES = $(BUILT_SOURCES)
|
||||
|
||||
|
Reference in New Issue
Block a user