mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
Use $(includedir) instead of hardcoding $(prefix)/include
This commit is contained in:
parent
bb40f6c7a8
commit
b462578393
2 changed files with 3 additions and 2 deletions
1
Make.inc
1
Make.inc
|
@ -6,6 +6,7 @@ VERSION_SPLIT = $(subst ., , $(VERSION))
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
libdir = $(prefix)/lib
|
libdir = $(prefix)/lib
|
||||||
|
includedir = $(prefix)/include
|
||||||
|
|
||||||
FC = gfortran
|
FC = gfortran
|
||||||
FFLAGS += -O3
|
FFLAGS += -O3
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -43,6 +43,6 @@ distclean:
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(DESTDIR)$(libdir)
|
mkdir -p $(DESTDIR)$(libdir)
|
||||||
mkdir -p $(DESTDIR)$(prefix)/include
|
mkdir -p $(DESTDIR)$(includedir)
|
||||||
cp -a libopenlibm.$(SHLIB_EXT)* libopenlibm.a $(DESTDIR)$(libdir)/
|
cp -a libopenlibm.$(SHLIB_EXT)* libopenlibm.a $(DESTDIR)$(libdir)/
|
||||||
cp -a src/openlibm.h $(DESTDIR)$(prefix)/include/
|
cp -a src/openlibm.h $(DESTDIR)$(includedir)/
|
||||||
|
|
Loading…
Reference in a new issue