Skip to content

Commit

Permalink
build: Use install command for installing files
Browse files Browse the repository at this point in the history
In build chroots of some package managers, the libdir does not exist yet so we need to create it.
  • Loading branch information
jtojnar committed Apr 6, 2020
1 parent fffc26e commit 1d7e76e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ KFVER=131
PREFIX ?= /usr/local
LIBDIR ?= $(PREFIX)/lib

INSTALL ?= install

ifeq ($(shell uname -s),Darwin)
SHARED_NAME := libkissfft.dylib
SHARED_FLAGS := -Wl,-install_name,$(SHARED_NAME)
Expand All @@ -17,7 +19,7 @@ all:
gcc -shared $(SHARED_FLAGS) -o $(SHARED_NAME) kiss_fft.o

install: all
cp $(SHARED_NAME) $(LIBDIR)
$(INSTALL) -Dt $(LIBDIR) $(SHARED_NAME)

doc:
@echo "Start by reading the README file. If you want to build and test lots of stuff, do a 'make testall'"
Expand Down

0 comments on commit 1d7e76e

Please sign in to comment.