File: Makefile.am

package info (click to toggle)
libxml2 2.4.19-4woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,936 kB
  • ctags: 5,542
  • sloc: ansic: 74,548; xml: 20,808; sh: 6,898; python: 2,869; makefile: 785
file content (41 lines) | stat: -rw-r--r-- 777 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
EXAMPLE_DIR = $(prefix)/share/doc/libxml2-python-$(LIBXML_VERSION)/examples

PYTESTS=	\
    build.py	\
    attribs.py	\
    tst.py	\
    tstxpath.py	\
    xpathext.py	\
    push.py	\
    pushSAX.py	\
    error.py	\
    serialize.py\
    validate.py	\
    tstURI.py	\
    cutnpaste.py\
    xpathret.py	\
    xpath.py

XMLS=		\
    tst.xml	\
    valid.xml	\
    invalid.xml

EXTRA_DIST = $(PYTESTS) $(XMLS)

if WITH_PYTHON
tests: $(PYTESTS)
	-@(PYTHONPATH="..:../.libs" ; export PYTHONPATH; \
	   for test in $(PYTESTS) ; do echo "-- $$test" ; $(PYTHON) $$test ; done)
else
tests:
endif

clean:
	rm -f *.pyc core

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(EXAMPLE_DIR)
	-(for test in $(PYTESTS) $(XMLS); \
	  do @INSTALL@ -m 0644 $$test $(DESTDIR)$(EXAMPLE_DIR) ; done)