Skip to content

Commit

Permalink
Fix permisions for install target.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoel committed May 29, 2015
1 parent f5b97a1 commit 1c2bcd2
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,27 @@ endif

install:
@#echo "Read INSTALL.txt for installation instructions."
rm -rvf $(INSTALL_DIR)admb
ifeq ($(DEBUG),yes)
ifeq ($(INSTALL_DIR),/usr/local/)
chmod a+rx ../build/debug/bin/admb
chmod a+rx ../build/debug/bin/adlink
chmod a+rx ../build/debug/bin/adcomp
chmod a+rx ../build/debug/contrib
chmod a+r ../build/debug/bin/sed*
chmod a+r ../build/debug/include/*.*
chmod a+r ../build/debug/contrib/include/*.*
endif
cp -Rvf ../build/debug $(INSTALL_DIR)admb
else
ifeq ($(INSTALL_DIR),/usr/local/)
chmod a+rx ../build/dist/bin/admb
chmod a+rx ../build/dist/bin/adlink
chmod a+rx ../build/dist/bin/adcomp
chmod a+rx ../build/dist/contrib
chmod a+r ../build/dist/bin/sed*
chmod a+r ../build/dist/include/*.*
chmod a+r ../build/dist/contrib/include/*.*
endif
cp -Rvf ../build/dist $(INSTALL_DIR)admb
endif
ln -svf $(INSTALL_DIR)admb/bin/admb $(INSTALL_DIR)bin/admb
Expand Down

0 comments on commit 1c2bcd2

Please sign in to comment.