VirtualBox

source: vbox/trunk/src/libs/libxslt-1.1.22/python/Makefile.am@ 13607

最後變更 在這個檔案從13607是 7296,由 vboxsync 提交於 17 年 前

Added libxslt-1.1.22 sources.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Date Revision Author Id
檔案大小: 1.7 KB
 
1# Makefile for libxml2 python library
2AUTOMAKE_OPTIONS = 1.4 foreign
3
4SUBDIRS= . tests
5
6INCLUDES = \
7 -I$(PYTHON_INCLUDES) \
8 $(LIBXML_CFLAGS) \
9 -I$(top_srcdir)/libxslt \
10 -I$(top_srcdir) \
11 -I../libexslt
12
13DOCS_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)
14# libxsltclass.txt is generated
15DOCS = TODO
16
17EXTRA_DIST = \
18 libxslt.c \
19 types.c \
20 generator.py \
21 libxml_wrap.h \
22 libxslt_wrap.h \
23 libxsl.py \
24 libxslt-python-api.xml \
25 $(DOCS)
26
27libxsltmod_la_LDFLAGS = -module -avoid-version
28
29if WITH_PYTHON
30mylibs = \
31 $(top_builddir)/libxslt/libxslt.la \
32 $(top_builddir)/libexslt/libexslt.la
33
34all-local: libxslt.py
35
36python_LTLIBRARIES = libxsltmod.la
37
38libxsltmod_la_SOURCES = libxslt.c types.c libxslt-py.c
39libxsltmod_la_LIBADD = $(mylibs)
40
41libxslt.py: $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py
42 cat $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py > libxslt.py
43
44install-data-local:
45 $(mkinstalldirs) $(DESTDIR)$(pythondir)
46 @INSTALL@ -m 0644 libxslt.py $(DESTDIR)$(pythondir)
47 $(mkinstalldirs) $(DESTDIR)$(DOCS_DIR)
48 @(for doc in $(DOCS) ; \
49 do @INSTALL@ -m 0644 $(srcdir)/$$doc $(DESTDIR)$(DOCS_DIR) ; done)
50
51GENERATE = generator.py
52API_DESC = $(top_srcdir)/doc/libxslt-api.xml $(srcdir)/libxslt-python-api.xml
53GENERATED= $(srcdir)/libxsltclass.py \
54 $(srcdir)/libxslt-export.c \
55 $(srcdir)/libxslt-py.c \
56 $(srcdir)/libxslt-py.h \
57 $(srcdir)/libxsltclass.txt
58
59$(GENERATED): gen_prog
60
61gen_prog: $(srcdir)/$(GENERATE) $(API_DESC)
62 cd $(srcdir) && $(PYTHON) $(GENERATE)
63 touch gen_prog
64
65$(libxsltmod_la_OBJECTS): $(GENERATED)
66
67else
68all:
69endif
70tests test: all
71 cd tests && $(MAKE) tests
72
73CLEANFILES= $(GENERATED) *.o libxslt.so *.pyc libxslt.py gen_prog
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette