From d4020e878b6f0076c3f04fd0d02ecb0eff097846 Mon Sep 17 00:00:00 2001 From: Richard England Date: Jan 28 2025 22:15:04 +0000 Subject: Modified Makefile to allow either RPM version or Flatpak version of inkscape to be used. --- diff --git a/images/Makefile b/images/Makefile index 6767787..8a317b0 100644 --- a/images/Makefile +++ b/images/Makefile @@ -1,6 +1,7 @@ # This Makefile simplifies building raster images and other # miscellanea. - +# Last Modification: Added logic to allow either RPM installed inkscape or Flatpak installed version +# help: @echo "Type 'make .jpg' to make JPEG image from SVG" @echo "Type 'make .png' to make PNG image from SVG" @@ -8,7 +9,8 @@ help: all: help %.png: %.svg - @flatpak run org.inkscape.Inkscape --export-area-page --export-width=1890 --export-filename=$@ $< + @if [[ -x /usr/bin/inkscape ]]; then inkscape --export-area-page --export-width=1890 --export-filename=$@ $<; else flatpak run org.inkscape.Inkscape --export-area-page --export-width=1890 --export-filename=$@ $<; fi + %.jpg: %.png @magick $< $@