blob: ddf28445b7a6201e0b7ec799f9960d832c09b672 (
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
|
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
|