From b46257839352fcd56f17009a006cd34fbbcd730b Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Tue, 7 Jan 2014 21:57:50 +0100 Subject: [PATCH] Use $(includedir) instead of hardcoding $(prefix)/include --- Make.inc | 1 + Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Make.inc b/Make.inc index 4438f8d..6b99266 100644 --- a/Make.inc +++ b/Make.inc @@ -6,6 +6,7 @@ VERSION_SPLIT = $(subst ., , $(VERSION)) DESTDIR = prefix = /usr/local libdir = $(prefix)/lib +includedir = $(prefix)/include FC = gfortran FFLAGS += -O3 diff --git a/Makefile b/Makefile index fa1ae4e..26c8bd5 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,6 @@ distclean: install: all mkdir -p $(DESTDIR)$(libdir) - mkdir -p $(DESTDIR)$(prefix)/include + mkdir -p $(DESTDIR)$(includedir) cp -a libopenlibm.$(SHLIB_EXT)* libopenlibm.a $(DESTDIR)$(libdir)/ - cp -a src/openlibm.h $(DESTDIR)$(prefix)/include/ + cp -a src/openlibm.h $(DESTDIR)$(includedir)/