blob: c1739359dd790ab9efdffc10607d79b0a5c9a9a6 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# SPDX-License-Identifier: CC0-1.0
#
# Copyright (C) 2023, 2024 Wojtek Kosior <koszko@koszko.org>
RESOURCE_FILES = \
$(PACKAGE).css
# $(PACKAGE).ico
# $(PACKAGE).svg.license
# $(PACKAGE).svg
resourcedir = $(datarootdir)/$(PACKAGE)
nobase_dist_resource_DATA = $(RESOURCE_FILES)
# EXTRA_DIST = \...
MOSTLYCLEANFILES = $(GUILE_OBJECT_FILES)
# CLEANFILES = $(PACKAGE).ico
.scm.go:
$(top_builddir)/pre-inst-env $(GUILD) compile --output=$@ $<
# # If ImageMagick isn't compiled with librsvg (and by default in Guix it isn't),
# # it fails to understand gradients in svg inputs. As a workaround let's do
# # svg->png conversion with Inkscape and then png->ico conversion with
# # ImageMagick's convert tool.
# .svg.png:
# $(INKSCAPE) "$<" --export-filename="$@" -w 256 -h 256
# .png.ico:
# $(CONVERT) "$<" -define icon:auto-resize=256,64,48,32,16 "$@"
uninstall-hook:
rm -rf $(DESTDIR)/$(resourcedir)
|