resetting manifest requested domain to floor
[platform/upstream/jasper.git] / Makefile.am
1 # Copyright (c) 2001-2003 Michael David Adams.
2 # All rights reserved. 
3
4 # __START_OF_JASPER_LICENSE__
5
6 # JasPer License Version 2.0
7
8 # Copyright (c) 2001-2006 Michael David Adams
9 # Copyright (c) 1999-2000 Image Power, Inc.
10 # Copyright (c) 1999-2000 The University of British Columbia
11
12 # All rights reserved.
13
14 # Permission is hereby granted, free of charge, to any person (the
15 # "User") obtaining a copy of this software and associated documentation
16 # files (the "Software"), to deal in the Software without restriction,
17 # including without limitation the rights to use, copy, modify, merge,
18 # publish, distribute, and/or sell copies of the Software, and to permit
19 # persons to whom the Software is furnished to do so, subject to the
20 # following conditions:
21
22 # 1.  The above copyright notices and this permission notice (which
23 # includes the disclaimer below) shall be included in all copies or
24 # substantial portions of the Software.
25
26 # 2.  The name of a copyright holder shall not be used to endorse or
27 # promote products derived from the Software without specific prior
28 # written permission.
29
30 # THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS
31 # LICENSE.  NO USE OF THE SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER
32 # THIS DISCLAIMER.  THE SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
33 # "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
34 # BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
35 # PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.  IN NO
36 # EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
37 # INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
38 # FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
39 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
40 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.  NO ASSURANCES ARE
41 # PROVIDED BY THE COPYRIGHT HOLDERS THAT THE SOFTWARE DOES NOT INFRINGE
42 # THE PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF ANY OTHER ENTITY.
43 # EACH COPYRIGHT HOLDER DISCLAIMS ANY LIABILITY TO THE USER FOR CLAIMS
44 # BROUGHT BY ANY OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL
45 # PROPERTY RIGHTS OR OTHERWISE.  AS A CONDITION TO EXERCISING THE RIGHTS
46 # GRANTED HEREUNDER, EACH USER HEREBY ASSUMES SOLE RESPONSIBILITY TO SECURE
47 # ANY OTHER INTELLECTUAL PROPERTY RIGHTS NEEDED, IF ANY.  THE SOFTWARE
48 # IS NOT FAULT-TOLERANT AND IS NOT INTENDED FOR USE IN MISSION-CRITICAL
49 # SYSTEMS, SUCH AS THOSE USED IN THE OPERATION OF NUCLEAR FACILITIES,
50 # AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL
51 # SYSTEMS, DIRECT LIFE SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH
52 # THE FAILURE OF THE SOFTWARE OR SYSTEM COULD LEAD DIRECTLY TO DEATH,
53 # PERSONAL INJURY, OR SEVERE PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH
54 # RISK ACTIVITIES").  THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIM ANY
55 # EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR HIGH RISK ACTIVITIES.
56
57 # __END_OF_JASPER_LICENSE__
58
59 AUTOMAKE_OPTIONS = foreign dist-zip dist-tarZ
60
61 EXTRA_DIST = README INSTALL COPYRIGHT LICENSE NEWS ChangeLog data doc \
62   jasper.spec.in jasper.spec acaux
63
64 # Note: We need to put the derived file "jasper.spec" in the distribution
65 # in order to facilitate RPM building.
66
67 SUBDIRS = src
68
69 rpm: dist
70         for i in BUILD RPMS SRPMS SOURCES SPECS; do \
71                 j=$$PWD/RPMTOP/$$i; \
72                 if ! -d $$j; then \
73                         mkdir -p $$j || exit 1; \
74                 fi \
75         done
76         rpmbuild  --rmsource --define "_topdir $$PWD/RPMTOP" \
77           -ta $(PACKAGE)-$(JAS_VERSION).tar.gz
78         rm -rf $$PWD/RPMTOP/BUILD/$(PACKAGE)-$(JAS_VERSION)
79
80 # We need to ensure that any Subversion directories in the extra directories
81 # are removed before the distribution archive is made.
82 dist-hook:
83         for i in $(EXTRA_DIST); do \
84                 if test -d $$i; then \
85                         j=`find $(distdir)/$$i -name .svn`; \
86                         if test -n "$$j"; then \
87                                 rm -rf $$j; \
88                         fi; \
89                 fi; \
90         done
91