Skip to content

Commit

Permalink
Add support for DESTDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon authored and staticfloat committed Jun 16, 2022
1 parent 2820b41 commit ffaa5b5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ $(builddir)/libblastrampoline.$(SHLIB_EXT): | $(builddir)/$(LIB_MAJOR_VERSION)

# Install both libraries and our headers
install: $(builddir)/libblastrampoline.$(SHLIB_EXT)
@mkdir -p $(prefix)/include/libblastrampoline
-@cp -Ra $(LBT_ROOT)/include/* $(prefix)/include/libblastrampoline
@cp -a $(LBT_ROOT)/src/libblastrampoline.h $(prefix)/include/
@mkdir -p $(prefix)/$(binlib)
@cp -a $(builddir)/libblastrampoline*$(SHLIB_EXT)* $(prefix)/$(binlib)/
@mkdir -p $(DESTDIR)$(prefix)/include/libblastrampoline
-@cp -Ra $(LBT_ROOT)/include/* $(DESTDIR)$(prefix)/include/libblastrampoline
@cp -a $(LBT_ROOT)/src/libblastrampoline.h $(DESTDIR)$(prefix)/include/
@mkdir -p $(DESTDIR)$(prefix)/$(binlib)
@cp -a $(builddir)/libblastrampoline*$(SHLIB_EXT)* $(DESTDIR)$(prefix)/$(binlib)/
ifeq ($(OS),WINNT)
@mkdir -p $(prefix)/lib
@cp -a $(builddir)/$(LIB_FULL_VERSION).a $(prefix)/lib
@mkdir -p $(DESTDIR)$(prefix)/lib
@cp -a $(builddir)/$(LIB_FULL_VERSION).a $(DESTDIR)$(prefix)/lib
endif

clean:
Expand Down

0 comments on commit ffaa5b5

Please sign in to comment.