diff options
author | Keith Packard <keithp@keithp.com> | 2014-02-16 15:17:40 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-02-16 15:52:22 -0800 |
commit | 948a614a62754fd4fffd9b84ad83fd444e4f0437 (patch) | |
tree | c7b62e85cd164365758ddd2b5d97b31824d86167 /icon | |
parent | 066a01ad0b4e73fdb47b43a42c1d0b7fae81a180 (diff) |
Move .desktop and icon management out of debian dir
This constructs a .desktop file from a template and installs it, along
with suitable .svg icons, during the normal build process
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'icon')
-rw-r--r-- | icon/Makefile.am | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/icon/Makefile.am b/icon/Makefile.am new file mode 100644 index 00000000..eedb7760 --- /dev/null +++ b/icon/Makefile.am @@ -0,0 +1,26 @@ +RES=16 32 48 256 + +AM_FILES=$(shell for i in $(RES); do echo altus-metrum-$$i.png; done) +MP_FILES=$(shell for i in $(RES); do echo micropeak-$$i.png; done) + +ICO_FILES=altus-metrum.ico micro-peak.ico + +icondir = $(datadir)/icons/hicolor/scalable/apps + +AM_ICON = altusmetrum.svg +MP_ICON = micropeak.svg + +icon_DATA = $(AM_ICON) $(MP_ICON) + +EXTRA_DIST = $(icon_DATA) $(AM_FILES) $(MP_FILES) + +all-local: $(ICO_FILES) + +#clean-local: +# $(RM) -f $(ICO_FILES) + +altus-metrum.ico: $(AM_FILES) + icotool -c -o $@ $(AM_FILES) + +micro-peak.ico: $(MP_FILES) + icotool -c -o $@ $(MP_FILES)
\ No newline at end of file |