# SPDX-License-Identifier: CC0-1.0 # # Copyright (C) 2023, 2024 Wojtek Kosior 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)