From: Erwan Velu Date: Tue, 30 Jul 2013 09:45:18 +0000 (+0200) Subject: Makefile: Installing fio2gnuplot & sons X-Git-Tag: fio-2.1.2~18 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=eab4af4e0fc24f52ac41924e62aa06a30550b6aa Makefile: Installing fio2gnuplot & sons Let's install fio2gnuplot & other gnuplot files (.gpm) while installing fio. Gnuplot files are installed into $(prefix}/share/fio/ subdirectory --- diff --git a/Makefile b/Makefile index 3de97354..c8849f6d 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ OPTFLAGS= -O3 -g -ffast-math CFLAGS = -std=gnu99 -Wwrite-strings -Wall -Wdeclaration-after-statement $(OPTFLAGS) $(EXTFLAGS) $(BUILD_CFLAGS) LIBS += -lm $(EXTLIBS) PROGS = fio -SCRIPTS = fio_generate_plots +SCRIPTS = fio_generate_plots tools/plot/fio2gnuplot.py ifdef CONFIG_GFIO PROGS += gfio @@ -189,8 +189,10 @@ bindir = $(prefix)/bin ifeq ($(CONFIG_TARGET_OS), Darwin) mandir = /usr/share/man +sharedir = /usr/share/fio else mandir = $(prefix)/man +sharedir = $(prefix)/share/fio endif all: $(PROGS) $(SCRIPTS) FORCE @@ -279,3 +281,5 @@ install: $(PROGS) $(SCRIPTS) FORCE $(INSTALL) -m 755 -d $(DESTDIR)$(mandir)/man1 $(INSTALL) -m 644 fio.1 $(DESTDIR)$(mandir)/man1 $(INSTALL) -m 644 fio_generate_plots.1 $(DESTDIR)$(mandir)/man1 + $(INSTALL) -m 755 -d $(DESTDIR)$(sharedir) + $(INSTALL) -m 644 tools/plot/*gpm $(DESTDIR)$(sharedir)/