Use $(includedir) instead of hardcoding $(prefix)/include

This commit is contained in:
Milan Bouchet-Valat 2014-01-07 21:57:50 +01:00
parent bb40f6c7a8
commit b462578393
2 changed files with 3 additions and 2 deletions

View file

@ -6,6 +6,7 @@ VERSION_SPLIT = $(subst ., , $(VERSION))
DESTDIR =
prefix = /usr/local
libdir = $(prefix)/lib
includedir = $(prefix)/include
FC = gfortran
FFLAGS += -O3

View file

@ -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)/