114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
1 |
################################################################################
|
2 |
# Makefile for the Kubuntu Documentation
|
|
3 |
#
|
|
4 |
# Copyright (C) 2009 Richard A. Johnson <nixternal@ubuntu.com>
|
|
5 |
#
|
|
6 |
# This program is free software: you can redistribute it and/or modify
|
|
7 |
# it under the terms of the GNU General Public License as published by
|
|
8 |
# the Free Software Foundation, either version 3 of the License, or
|
|
9 |
# (at your option) any later version.
|
|
10 |
#
|
|
11 |
# This program is distributed in the hope that it will be useful,
|
|
12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 |
# GNU General Public License for more details.
|
|
15 |
#
|
|
16 |
# You should have received a copy of the GNU General Public License
|
|
17 |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18 |
#
|
|
19 |
################################################################################
|
|
20 |
||
21 |
MAKECMD=make |
|
22 |
||
23 |
# Language code for documents
|
|
24 |
LN=C |
|
25 |
||
26 |
# XSL Processor
|
|
27 |
XSLTPROC=/usr/bin/xsltproc |
|
28 |
||
29 |
# Stylesheets
|
|
118
by Richard A. Johnson
s/customization/libs/ in Makefile |
30 |
CHUNKXSL=libs/kubuntu-chunk.xsl |
123
by Richard A. Johnson
adding initial web building stuff for docs |
31 |
NONCHUNKXSL=libs/kubuntu-nonchunk.xsl |
32 |
CHUNKONLINEXSL=libs/kubuntu-chunk-online.xsl |
|
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
33 |
|
34 |
# Output/build directory
|
|
35 |
BUILD=build |
|
36 |
KBASE=$(BUILD)/kubuntu |
|
37 |
||
38 |
################
|
|
39 |
## Make Targets
|
|
40 |
################
|
|
41 |
||
42 |
# Style
|
|
43 |
style: |
|
44 |
||
45 |
mkdir -p $(KBASE)/images |
|
134.1.2
by Richard A. Johnson
adding custom kubuntu css to fix a monospace font issue |
46 |
mkdir -p $(KBASE)/common |
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
47 |
cp images/* $(KBASE)/images/ |
134.1.2
by Richard A. Johnson
adding custom kubuntu css to fix a monospace font issue |
48 |
cp libs/kubuntu.css $(KBASE)/common/ |
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
49 |
|
50 |
# All Kubuntu Documentation
|
|
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
51 |
all: common style desktopfiles |
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
52 |
|
53 |
for doc in `ls docs/`; do \ |
|
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
54 |
xsltproc -o $(KBASE)/docs/$$doc/$(LN)/index.html $(CHUNKXSL) \ |
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
55 |
docs/$$doc/$(LN)/$$doc.xml; done |
56 |
||
57 |
# Common - ccbysa and contributors
|
|
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
58 |
common: clean |
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
59 |
|
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
60 |
mkdir -p $(KBASE)/docs |
61 |
xsltproc -o $(KBASE)/docs/contributors.html $(NONCHUNKXSL) \ |
|
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
62 |
common/contributors.xml |
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
63 |
xsltproc -o $(KBASE)/docs/license.html $(NONCHUNKXSL) \ |
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
64 |
common/ccbysa.xml |
65 |
||
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
66 |
desktopfiles: |
67 |
mkdir -p $(KBASE)/data |
|
68 |
intltool-merge -d data/about/po/ data/about/about.desktop.in build/kubuntu/data/about.desktop |
|
159
by Richard A. Johnson
more building changes |
69 |
cp build/kubuntu/data/about.desktop build/kubuntu/data/about.desktop.tobemoved |
70 |
intltool-merge -d data/directory/po/ data/directory/directory.desktop.in build/kubuntu/data/.directory |
|
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
71 |
intltool-merge -d data/kubuntu-docs/po/ data/kubuntu-docs/kubuntu-docs.desktop.in build/kubuntu/data/kubuntu-docs.desktop |
166
by Richard A. Johnson
yet another building fix |
72 |
intltool-merge -d data/welcome/po/ data/welcome/welcome.desktop.in build/kubuntu/data/a_welcome.desktop |
158
by Richard A. Johnson
moving around some stuff for packaging - prepping desktop files for translations |
73 |
|
123
by Richard A. Johnson
adding initial web building stuff for docs |
74 |
# Web - build docs for use on the web
|
75 |
web: common style |
|
76 |
||
77 |
cp -r /usr/share/doc/kde4/HTML/en/common/* $(KBASE)/common/ |
|
78 |
for doc in `ls docs/`; do \ |
|
144.1.11
by Richard A. Johnson
fixing makefile for web build |
79 |
cp docs/$$doc/$(LN)/$$doc.xml docs/$$doc/$(LN)/$$doc.xml.orig; \ |
124
by Richard A. Johnson
adding a sed replace for help:/kubuntu/ text and replacing it with ../../ for use on the web |
80 |
sed -i 's/help\:\/kubuntu\//\.\.\/\.\.\//g' docs/$$doc/$(LN)/$$doc.xml; \ |
123
by Richard A. Johnson
adding initial web building stuff for docs |
81 |
xsltproc -o $(KBASE)/$$doc/$(LN)/index.html $(CHUNKONLINEXSL) \ |
144.1.11
by Richard A. Johnson
fixing makefile for web build |
82 |
docs/$$doc/$(LN)/$$doc.xml; \ |
83 |
mv docs/$$doc/$(LN)/$$doc.xml.orig docs/$$doc/$(LN)/$$doc.xml; done |
|
123
by Richard A. Johnson
adding initial web building stuff for docs |
84 |
|
114
by Richard A. Johnson
adding the new stuff. all the docs are blank, so prepare to get to work |
85 |
# Clean the build directory
|
86 |
clean: |
|
87 |
||
88 |
rm -rf $(BUILD) |