xref: /aoo4110/main/readlicense_oo/makefile.mk (revision b1cdbd2c)
1# *************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20# *************************************************************
21PRJ=.
22PRJNAME=readlicense_oo
23TARGET=source
24
25# ------------------------------------------------------------------
26.INCLUDE: settings.mk
27# ------------------------------------------------------------------
28
29ALL_LICENSE=..$/LICENSE
30ALL_NOTICE=..$/NOTICE
31.IF "${ENABLE_CATEGORY_B}"=="YES"
32    # extend the install set's LICENSE and NOTICE files
33    # for content distributed under category-B licenses
34    ALL_LICENSE+=..$/LICENSE_category_b
35    ALL_NOTICE+=..$/NOTICE_category_b
36.ENDIF
37.IF "${BUNDLED_EXTENSION_BLOBS}"!=""
38    # extend the install set's LICENSE and NOTICE files
39    # for content distributed as mere aggregations
40    ALL_LICENSE+=..$/LICENSE_aggregated
41    ALL_NOTICE+=..$/NOTICE_aggregated
42.ENDIF
43SUM_LICENSE=$(MISC)$/SUM_LICENSE
44SUM_NOTICE=$(MISC)$/SUM_NOTICE
45
46.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
47    LINEEND_CAT=$(PERL) -p -e 's/\r?\n$$/\r\n/'
48.ELSE
49    LINEEND_CAT=cat
50.ENDIF
51
52# ------------------------------------------------------------------
53.INCLUDE: target.mk
54# ------------------------------------------------------------------
55
56ALLTAR: ${SUM_LICENSE} ${SUM_NOTICE}
57
58${SUM_LICENSE} : ${ALL_LICENSE}
59    ${LINEEND_CAT} > $@ $<
60
61${SUM_NOTICE} : ${ALL_NOTICE}
62    ${LINEEND_CAT} > $@ $<
63
64