~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-25 15:47:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080225154712-qvr11ekcea4c9ry8
Tags: 1.1.6-0.1ubuntu1
* Merge from debian-multimedia (LP: #120003), Ubuntu Changes:
 - For ffmpeg-related build-deps, remove cvs from package names.
 - Standards-Version 3.7.3
 - Maintainer Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@SET_MAKE@
2
 
EXTRA_DIST = man getopt xbm ffmpeg
3
 
SUBDIRS = Xw src
4
 
if WITHGT
5
 
SUBDIRS += gt
6
 
endif
7
 
 
 
1
## Process this file with automake to produce Makefile.in
 
2
## Created by Anjuta
 
3
 
 
4
doc_SUBDIRS = doc
 
5
SUBDIRS = $(doc_SUBDIRS) \
 
6
    src \
 
7
    po \
 
8
    debian
 
9
 
 
10
pkgdata_DATA = xvidcap.desktop \
 
11
        xvidcap.png \
 
12
    ppm2mpeg.sh
 
13
 
 
14
xvidcapdocdir = ${datadir}/doc/xvidcap
 
15
xvidcapdoc_DATA = \
 
16
        README\
 
17
        COPYING\
 
18
        AUTHORS\
 
19
        ChangeLog
 
20
 
 
21
EXTRA_DIST = $(xvidcapdoc_DATA) \
 
22
    autogen.sh \
 
23
    intltool-extract.in \
 
24
    intltool-merge.in \
 
25
    intltool-update.in \
 
26
    xvidcap.png \
 
27
    xvidcap.desktop \
 
28
    ppm2mpeg.sh \
 
29
    TODO.tasks \
 
30
    INSTALL
 
31
 
 
32
 
 
33
# Copy all the spec files. Of cource, only one is actually used.
8
34
dist-hook:
9
 
        rm -rf `find $(distdir) -name CVS`
10
 
        rm $(distdir)/ffmpeg/output_example || echo "output_example not found ... alright then ..."
11
 
        ( cd $(distdir)/ffmpeg/ && $(MAKE) distclean ) || ( echo "FAILED TO DISTCLEAN FFMPEG" && exit )
12
 
        ( test -f $(distdir)/ffmpeg/config.log && rm $(distdir)/ffmpeg/config.log ) || echo "no ffmpeg config.log"
 
35
        for specfile in *.spec; do \
 
36
                if test -f $$specfile; then \
 
37
                        cp -p $$specfile $(distdir); \
 
38
                fi \
 
39
        done; \
 
40
    mkdir $(distdir)/ffmpeg ; \
 
41
    ( cd $(top_srcdir)/ffmpeg/ && tar cf - . | ( cd ../$(distdir)/ffmpeg && tar xf - ) ) ; \
 
42
    rm -rf `find $(distdir) -name CVS` ; \
 
43
    rm -rf `find $(distdir) -name .svn` ; \
 
44
    ( cd $(distdir)/ffmpeg/ && $(MAKE) distclean ) || ( echo "FAILED TO DISTCLEAN FFMPEG" && exit ) ; \
 
45
    ( test -f $(distdir)/ffmpeg/config.log && rm $(distdir)/ffmpeg/config.log ) || echo "no ffmpeg config.log"
 
46
 
 
47
install-exec-hook:
 
48
        mkdir $(DESTDIR)$(datadir)/pixmaps ; \
 
49
        cp $(top_srcdir)/xvidcap.png $(DESTDIR)$(datadir)/pixmaps/ ; \
 
50
        mkdir $(DESTDIR)$(datadir)/applications ; \
 
51
        cp $(top_srcdir)/xvidcap.desktop $(DESTDIR)$(datadir)/applications/
 
52
 
 
53
install-data-hook:
 
54
        chmod 755 $(DESTDIR)$(datadir)/xvidcap/ppm2mpeg.sh
 
55
 
 
56
uninstall-hook:
 
57
        rm $(DESTDIR)$(datadir)/pixmaps/xvidcap.png ; \
 
58
        rm $(DESTDIR)$(datadir)/applications/xvidcap.desktop ; \
 
59
        rm -r $(DESTDIR)$(datadir)/doc/xvidcap ; \
 
60
        rm -r $(DESTDIR)$(datadir)/xvidcap
 
61
 
 
62
install-doc: 
 
63
        cd doc && $(MAKE) $(AM_MAKEFLAGS) install-doc
 
64
 
 
65
uninstall-doc: 
 
66
        cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall-doc
13
67