Skip to content

Commit

Permalink
change install target to match current release structure
Browse files Browse the repository at this point in the history
  • Loading branch information
braddr committed Jul 22, 2014
1 parent 5d7c4c0 commit 0254ef1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions posix.mak
Expand Up @@ -355,15 +355,16 @@ zip :
zip $(ZIPFILE) $(MAKEFILE) $(ALL_D_FILES) $(ALL_C_FILES) win32.mak win64.mak

install2 : all
mkdir -p $(INSTALL_DIR)/lib
cp $(LIB) $(INSTALL_DIR)/lib/
mkdir -p $(INSTALL_DIR)/$(OS)/lib$(MODEL)
cp $(LIB) $(INSTALL_DIR)/$(OS)/lib$(MODEL)/
ifneq (,$(findstring $(OS),linux))
cp -P $(LIBSO) $(ROOT)/$(SONAME) $(ROOT)/libphobos2.so $(INSTALL_DIR)/lib/
cp -P $(LIBSO) $(INSTALL_DIR)/$(OS)/lib$(MODEL)/
ln -s $(notdir $(LIBSO)) $(INSTALL_DIR)/$(OS)/lib$(MODEL)/libphobos2.so
endif
mkdir -p $(INSTALL_DIR)/import/etc
mkdir -p $(INSTALL_DIR)/import/std
cp -r std/* $(INSTALL_DIR)/import/std/
cp -r etc/* $(INSTALL_DIR)/import/etc/
mkdir -p $(INSTALL_DIR)/src/phobos/etc
mkdir -p $(INSTALL_DIR)/src/phobos/std
cp -r std/* $(INSTALL_DIR)/src/phobos/std/
cp -r etc/* $(INSTALL_DIR)/src/phobos/etc/
cp LICENSE_1_0.txt $(INSTALL_DIR)/phobos-LICENSE.txt

# Target druntime_libs produces $(DRUNTIME) and $(DRUNTIMESO). See
Expand Down

0 comments on commit 0254ef1

Please sign in to comment.