|
Revision 742, 1.5 kB
(checked in by wrobell, 3 years ago)
|
- do not copy diagrams into html without their directory hierarchy
- convert into png using svg2png instead of rsvg
- keep svg files with manual
- list of examples css stylesheets improvements
- save some of diagrams with new version of gaphor
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
XSLTPROC = xsltproc |
|---|
| 2 |
SVG2PNG = svg2png |
|---|
| 3 |
GAPHORCONVERT = ../gaphor/bin/gaphorconvert |
|---|
| 4 |
|
|---|
| 5 |
XML_MAIN_FILE = gaphor.xml |
|---|
| 6 |
CONTENT_FILES = gaphor-elements.xml \ |
|---|
| 7 |
gaphor-install.xml \ |
|---|
| 8 |
gaphor-internals.xml \ |
|---|
| 9 |
gaphor-project-documentation.xml \ |
|---|
| 10 |
gaphor-uml.xml \ |
|---|
| 11 |
gaphor-usage.xml |
|---|
| 12 |
XSLT_FILE = xsl/gaphor.xsl |
|---|
| 13 |
|
|---|
| 14 |
GAPHOR_MODELS = uml2.gaphor \ |
|---|
| 15 |
examples.gaphor \ |
|---|
| 16 |
diagrams.gaphor |
|---|
| 17 |
|
|---|
| 18 |
all: html.stamp model.stamp copy.stamp |
|---|
| 19 |
@true |
|---|
| 20 |
|
|---|
| 21 |
clean: dist-clean |
|---|
| 22 |
rm -f html-build.stamp model-build.stamp copy-build.stamp |
|---|
| 23 |
rm -rf html |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
html-build.stamp: $(XML_MAIN_FILE) $(CONTENT_FILES) $(XSLT_FILE) |
|---|
| 27 |
test -d html || mkdir html |
|---|
| 28 |
(cd html && $(XSLTPROC) --xinclude ../$(XSLT_FILE) ../$(XML_MAIN_FILE)) |
|---|
| 29 |
touch html-build.stamp |
|---|
| 30 |
|
|---|
| 31 |
html.stamp: html-build.stamp |
|---|
| 32 |
@true |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
model-build.stamp: $(GAPHOR_MODELS) |
|---|
| 36 |
test -d html || mkdir html |
|---|
| 37 |
$(GAPHORCONVERT) -d html -f svg $(GAPHOR_MODELS) |
|---|
| 38 |
find html -name \*.svg -exec sh -c "$(SVG2PNG) \"\$$0\" \"\$${0%.svg}.png\"" {} \; |
|---|
| 39 |
touch model-build.stamp |
|---|
| 40 |
|
|---|
| 41 |
model.stamp: model-build.stamp |
|---|
| 42 |
@true |
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
copy-build.stamp: xsl/*.png img/*.png css/*.css |
|---|
| 46 |
cp xsl/*.png html |
|---|
| 47 |
cp img/*.png html |
|---|
| 48 |
cp css/*.css html |
|---|
| 49 |
cp *.tex project-documentation-example.gaphor html/ |
|---|
| 50 |
touch copy-build.stamp |
|---|
| 51 |
|
|---|
| 52 |
copy.stamp: copy-build.stamp |
|---|
| 53 |
@true |
|---|
| 54 |
|
|---|
| 55 |
bindist: dist-clean |
|---|
| 56 |
cp -r html manual |
|---|
| 57 |
tar cf manual.tar manual |
|---|
| 58 |
gzip -9 manual.tar |
|---|
| 59 |
|
|---|
| 60 |
dist: |
|---|
| 61 |
tar cf manual-src.tar $(CONTENT_FILES) $(MODEL_FILES) $(XSLT_FILE) xsl/*.png img/*.png css/*.css |
|---|
| 62 |
gzip -9 manual-src.tar |
|---|
| 63 |
|
|---|
| 64 |
dist-clean: |
|---|
| 65 |
rm -rf manual manual.tar.gz |
|---|
| 66 |
|
|---|
| 67 |
valid: |
|---|
| 68 |
xmllint --noout --xinclude --noent --postvalid gaphor.xml |
|---|
| 69 |
|
|---|
| 70 |
.PHONY: all dist clean dist-clean |
|---|
| 71 |
|
|---|