forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6824 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
c419622e07
commit
59d4ade466
16
src/Makefile
16
src/Makefile
|
@ -67,11 +67,14 @@ help:
|
|||
@$(SHELL) Make.sh style
|
||||
@cp -p *.cpp *.h Obj_$@
|
||||
@cp MAKE/Makefile.$@ Obj_$@/Makefile
|
||||
@if [ ! -e Makefile.package ]; then make package-regenerate; fi
|
||||
@if [ ! -e Makefile.package.settings ]; then make package-regenerate; fi
|
||||
@if [ ! -e Makefile.package ]; \
|
||||
then cp Makefile.package.empty Makefile.package; fi
|
||||
@if [ ! -e Makefile.package.settings ]; \
|
||||
then cp Makefile.package.settings.empty Makefile.package.settings; fi
|
||||
@cp Makefile.package Makefile.package.settings Obj_$@
|
||||
@cd Obj_$@; \
|
||||
$(MAKE) $(MFLAGS) "OBJ = $(OBJ)" "INC = $(INC)" "EXE = ../$(EXE)" ../$(EXE)
|
||||
$(MAKE) $(MFLAGS) "OBJ = $(OBJ)" "INC = $(INC)" \
|
||||
"EXE = ../$(EXE)" ../$(EXE)
|
||||
@if [ -d Obj_$@ ]; then cd Obj_$@; rm -f $(SRC) $(INC) Makefile*; fi
|
||||
|
||||
# Remove machine-specific object files
|
||||
|
@ -171,7 +174,6 @@ no-%:
|
|||
# status = list src files that differ from package files
|
||||
# update = replace src files with newer package files
|
||||
# overwrite = overwrite package files with newer src files
|
||||
# regenerate = regenerate Makefile.package from Makefile.package.empty
|
||||
# diff = show differences between src and package files
|
||||
|
||||
package-status:
|
||||
|
@ -189,12 +191,6 @@ package-overwrite:
|
|||
@echo ''
|
||||
@for p in $(PACKUSERUC); do $(SHELL) Package.sh $$p overwrite; done
|
||||
|
||||
package-regenerate:
|
||||
@cp Makefile.package.empty Makefile.package
|
||||
@cp Makefile.package.settings.empty Makefile.package.settings
|
||||
@for p in $(PACKAGEUC); do $(SHELL) Package.sh $$p regenerate; done
|
||||
@for p in $(PACKUSERUC); do $(SHELL) Package.sh $$p regenerate; done
|
||||
|
||||
package-diff:
|
||||
@for p in $(PACKAGEUC); do $(SHELL) Package.sh $$p diff; done
|
||||
@echo ''
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Package.sh = package management, called from Makefile
|
||||
# Syntax: sh Package.sh DIR status/update/overwrite/regenerate/diff
|
||||
# Syntax: sh Package.sh DIR status/update/overwrite/diff
|
||||
|
||||
# style used to translate dir name to package name
|
||||
|
||||
|
@ -79,15 +79,6 @@ elif (test $2 = "overwrite") then
|
|||
echo " $1 package is not installed, no action"
|
||||
fi
|
||||
|
||||
# regenenate Makefile.package from Makefile.package.empty
|
||||
# if installed:
|
||||
# re-install so Install.sh will edit Makefile.package
|
||||
|
||||
elif (test $2 = "regenerate") then
|
||||
if (test $installed = 1) then
|
||||
/bin/sh Install.sh 1
|
||||
fi
|
||||
|
||||
# diff
|
||||
# if installed:
|
||||
# show any differences between src files and package files
|
||||
|
|
Loading…
Reference in New Issue