~ubuntu-branches/ubuntu/maverick/libdbi/maverick-proposed

« back to all changes in this revision

Viewing changes to drivers/example/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Goirand
  • Date: 2007-11-26 05:53:13 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071126055313-29bzt00k533rgkg8
Tags: 0.8.2-3
* New maintainer (Closes: #444424)
* Now cleaning everything correctly on the clean target
* Now managing updates of config.sub and config.guess correctly
* Removed useless postinst and postrm from debian folder as they are
  generated by dh_makeshlibs anyway
* Cleaned a bit the debian/rules for readability
* Reviewed the debian/copyright for accuracy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AUTOMAKE_OPTIONS = foreign
 
2
 
 
3
if HAVE_EXAMPLE
 
4
 
 
5
# don't use docdir, doc_DATA. This way we keep the HTML in separate subdirs
 
6
# for each driver
 
7
doc_dir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
 
8
html_subdir = dbd_example
 
9
noinst_DATA = dbd_example.pdf dbd_example/* 
 
10
 
 
11
example_ltlibs = libexample.la
 
12
example_ldflags = -module -avoid-version
 
13
example_sources = dbd_example.c
 
14
 
 
15
else
 
16
 
 
17
doc_dir =
 
18
html_subdir =
 
19
noinst_DATA =
 
20
 
 
21
example_ltlibs =
 
22
example_ldflags =
 
23
example_sources =
 
24
 
 
25
endif
 
26
 
 
27
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include @DBI_INCLUDE@ @EXAMPLE_INCLUDE@
 
28
 
 
29
libdir = $(driverdir)
 
30
lib_LTLIBRARIES = $(example_ltlibs)
 
31
libexample_la_LDFLAGS = $(example_ldflags) @EXAMPLE_LDFLAGS@ @EXAMPLE_LIBS@
 
32
libexample_la_SOURCES = $(example_sources)
 
33
libexample_la_DEPENDENCIES = dbd_example.h
 
34
 
 
35
EXTRA_DIST = dbd_example.c dbd_example.h AUTHORS TODO README dbd_example.pdf dbd_example/*
 
36
 
 
37
driverdoc_sources = dbd_example.sgml
 
38
 
 
39
dbd_example.pdf: $(driverdoc_sources)
 
40
        @echo "Converting dbd_example.sgml to PDF...";
 
41
        openjade -t tex -V tex-backend -d $(top_srcdir)/doc/include/doc-print.dsl dbd_example.sgml
 
42
# run jadetex three times to get the references right
 
43
        pdftex "&pdfjadetex" dbd_example.tex
 
44
        pdftex "&pdfjadetex" dbd_example.tex
 
45
        pdftex "&pdfjadetex" dbd_example.tex
 
46
 
 
47
dbd_example/*:
 
48
        @echo "Converting dbd_example.sgml to HTML...";
 
49
        mkdir -p dbd_example && cd dbd_example && openjade -t sgml -d $(top_srcdir)/doc/include/doc-html.dsl ../dbd_example.sgml
 
50
 
 
51
 
 
52
distclean: clean
 
53
        rm -f dbd_example.pdf dbd_example/*
 
54
 
 
55
# manually install the docs
 
56
install-data-local: 
 
57
if HAVE_EXAMPLE
 
58
        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(doc_dir) $(DESTDIR)$(doc_dir)/$(html_subdir)
 
59
        @for f in $(noinst_DATA); do \
 
60
                $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(doc_dir)/$$f; \
 
61
        done
 
62
endif
 
 
b'\\ No newline at end of file'