diff options
Diffstat (limited to 'images/GNUmakefile')
-rw-r--r-- | images/GNUmakefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/images/GNUmakefile b/images/GNUmakefile new file mode 100644 index 0000000..ddf2844 --- /dev/null +++ b/images/GNUmakefile @@ -0,0 +1,32 @@ +TOPDIR = .. +include $(TOPDIR)/src/include/builddefs + +DESKTOP_ICONS = pmchart.png pmtime.png +HTMLDOC_ICONS = pcpicon.png pmcharticon.png pmtimeicon.png + +INKSCAPE = inkscape +SVGFILES = $(shell echo *.svg) +PNGFILES = $(shell echo *.svg | sed -e 's/\.svg/.png/g') +PNGFILES += $(DESKTOP_ICONS) +ICNFILES = $(shell echo *.icns *.ico) + +LSRCFILES = $(SVGFILES) $(PNGFILES) $(ICNFILES) $(HTMLDOC_ICONS) + +# use checked in files by default, so no default build rule +default: + +#%.png: %.svg +%.png: + $(INKSCAPE) -z -e $@ $< + +include $(BUILDRULES) + +install: default +ifeq ($(WINDOW),x11) + $(INSTALL) -m 755 -d $(PCP_ICONS_DIR) + $(INSTALL) -m 644 $(DESKTOP_ICONS) $(PCP_ICONS_DIR) +endif + +default_pcp : default + +install_pcp : install |