xref: /aoo4110/main/l10ntools/scripts/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#**************************************************************
21
22
23
24# Copy *.py files into output tree and call a script once to
25# force python to create the *.pyc files.
26
27PRJ=..
28TARGET = l10ntools_dummy_pyc
29
30.INCLUDE: settings.mk
31
32.IF "$(SYSTEM_PYTHON)"!="YES"
33PYTHON=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/python
34.ELSE                   # "$(SYSTEM_PYTHON)"!="YES"
35PYTHON=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) python
36.ENDIF                  # "$(SYSTEM_PYTHON)"!="YES"
37
38PYFILES = $(BIN)$/const.py \
39          $(BIN)$/l10ntool.py \
40          $(BIN)$/pseudo.py \
41          $(BIN)$/sdf.py \
42          $(BIN)$/xhtex.py \
43          $(BIN)$/xtxex.py
44
45.INCLUDE: target.mk
46
47.IGNORE : create_pyc
48ALLTAR : create_pyc
49create_pyc : $(PYFILES)
50.IF "$(GUI)"=="OS2"
51    @$(PYTHON) $(BIN)/xtxex.py > /dev/null
52.ELSE
53    @$(PYTHON) $(BIN)/xtxex.py >& /dev/null
54.ENDIF
55
56$(BIN)$/%.py : tool/%.py
57    @$(COPY) $< $@
58
59
60