File: Makefile.am

package info (click to toggle)
libvirt-php 0.5.8-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,140 kB
  • sloc: ansic: 9,352; sh: 4,578; php: 269; makefile: 219; xml: 93
file content (72 lines) | stat: -rw-r--r-- 1,753 bytes parent folder | download | duplicates (6)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
## Process this file with automake to produce Makefile.in
PERL = perl

css =         \
  generic.css \
  libvirt.css \
  main.css

png = \
  graphics/32favicon.png \
  graphics/footer_corner.png \
  graphics/footer_pattern.png \
  graphics/libvirt-header-bg.png \
  graphics/libvirt-php-header-logo.png

dot_html_in = $(notdir $(wildcard $(srcdir)/*.html.in))
dot_html = $(dot_html_in:%.html.in=%.html)

EXTRA_DIST=					\
  site.xsl news.xsl page.xsl \
  $(dot_html) $(dot_html_in) $(png) $(css) \
  sitemap.html.in

MAINTAINERCLEANFILES = $(dot_html)

all-am: web

web: $(dot_html)

%.png: %.fig
	convert -rotate 90 $< $@

%.html.tmp: %.html.in site.xsl page.xsl sitemap.html.in
	@if [ -x $(XSLTPROC) ] ; then \
	  echo "Generating $@"; \
	  name=`echo $@ | sed -e 's/.tmp//'`; \
	  $(XSLTPROC) --stringparam pagename $$name --nonet --html \
	    $(top_srcdir)/docs/site.xsl $< > $@ \
	    || { rm $@ && exit 1; }; fi

%.html: %.html.tmp
	@if test -x $(XMLLINT) && test -x $(XMLCATALOG) ; then \
	  if $(XMLCATALOG) '$(XML_CATALOG_FILE)' \
	    "-//W3C//DTD XHTML 1.0 Strict//EN" > /dev/null ; then \
	    echo "Validating $@" ; \
	    SGML_CATALOG_FILES='$(XML_CATALOG_FILE)' \
	    $(XMLLINT) --catalogs --nonet --format --valid $< > $@ \
	    || { rm $@ && exit 1; }; \
      else cp $< $@; \
      fi ; \
    fi
# Hack it as build is failing on my F-17 x86_64 box

check-local: all

clean-local:
	rm -f *.html

maintainer-clean-local: clean-local

rebuild: all

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
	for f in $(css) $(dot_html) $(png); do \
	  $(INSTALL) -m 0644 $(srcdir)/$$f $(DESTDIR)$(HTML_DIR); \
	done

uninstall-local:
	for f in $(css) $(dot_html) $(png); do \
	  rm -f $(DESTDIR)$(HTML_DIR)/$$(basename $$f); \
	done