Mercurial > trustbridge
annotate ui/img/src/Makefile @ 1332:8362e30f7b55
(issue139) Check that pid is not running if the lock can be aquired
If the lock on the lockfile can be aquired it might still be
possible that another process is running. So we read the
pid from the lockfile and check if another process with the
same installation prefix as us is running.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 14:19:46 +0200 |
parents | 57879b3ae12a |
children |
rev | line source |
---|---|
1171
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
1 # Makefile inspired from oxygen-icons-4.13.0/scalable/export_pngs.sh |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
2 # needs ImageMagick and Inkscape |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
3 |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
4 svgs := $(wildcard *.svg) |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
5 |
1213
57879b3ae12a
Icons, src: Small Makefile improvement.
Bernhard Reiter <bernhard@intevation.de>
parents:
1211
diff
changeset
|
6 targets := $(patsubst %.svg,%-48.png,$(svgs)) do-changes-16.png |
1171
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
7 |
1213
57879b3ae12a
Icons, src: Small Makefile improvement.
Bernhard Reiter <bernhard@intevation.de>
parents:
1211
diff
changeset
|
8 all: $(targets) |
1171
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
9 |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
10 clean: |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
11 rm $(targets) $(patsubst %.svg,%.png,$(svgs)) |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
12 |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
13 %-48.png:%.svg |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
14 inkscape --without-gui "--export-png=$*.png" --export-dpi=72 --export-background-opacity=0 --export-width=512 --export-height=512 "$<" >/dev/null |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
15 convert -filter Sinc -resize 48x48 "$*.png" "$@" |
76c469b460d8
ui/img: (issue115) Icon consistency improved by using inkscape automated export.
Bernhard Reiter <bernhard@intevation.de>
parents:
diff
changeset
|
16 |
1211
b64f847bde09
(issue121) icon, new version for the do-changes button.
Bernhard Reiter <bernhard@intevation.de>
parents:
1171
diff
changeset
|
17 %-16.png:%.svg |
b64f847bde09
(issue121) icon, new version for the do-changes button.
Bernhard Reiter <bernhard@intevation.de>
parents:
1171
diff
changeset
|
18 inkscape --without-gui "--export-png=$@" --export-dpi=72 --export-background-opacity=0 --export-width=16 --export-height=16 "$<" >/dev/null |
b64f847bde09
(issue121) icon, new version for the do-changes button.
Bernhard Reiter <bernhard@intevation.de>
parents:
1171
diff
changeset
|
19 |