spec: Use %license macro to copy license
[platform/upstream/libtheora.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = foreign 1.6 dist-zip dist-bzip2
4
5 if THEORA_ENABLE_EXAMPLES
6 EXAMPLES_DIR = examples
7 else
8 EXAMPLES_DIR =
9 endif
10
11 SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
12
13
14 # we include the whole debian/ dir in EXTRA_DIST because there's a problem
15 # with autotools and HFS+ MacOSX file systems that caused debian/Makefile.am
16 # to pick up on the lowercase changelog file and add ChangeLog to DIST_COMMON
17 # because of it, breaking make dist.  This works just as well.
18 EXTRA_DIST = \
19         README CHANGES COPYING LICENSE \
20         autogen.sh win32 macosx symbian SConstruct \
21         libtheora.spec libtheora.spec.in \
22         theora-uninstalled.pc.in
23
24 pkgconfigdir = $(libdir)/pkgconfig
25 pkgconfig_DATA = theora.pc theoradec.pc theoraenc.pc
26
27 # Remove the .svn folders included in the tarball
28 dist-hook:
29         find $(distdir) -type d -name '.svn' | xargs rm -rf
30
31 debug:
32         $(MAKE) all CFLAGS="@DEBUG@"
33
34 profile:
35         $(MAKE) all CFLAGS="@PROFILE@"