Commit 995ffadc authored by thomas.forbriger's avatar thomas.forbriger
Browse files

master [TASK]: support installation by 'make all'

Some settings of make variables were still missing in cases, where users have
not installed the Seitosh environment. Set reasonable default values in
Makefile.
parent 01aa1db6
......@@ -17,7 +17,8 @@ all:
EDITFORTRAN=$(patsubst ./%,%,$(shell find . -name \*.f))
EDITBASH=$(patsubst ./%,%,$(shell find . -name \*.sh))
EDITAWK=$(patsubst ./%,%,$(shell find . -name \*.awk))
EDITMAKE=$(patsubst ./%,%,$(shell find . -name Makefile))
EDITMAKE=$(patsubst ./%,%,$(shell find . -name Makefile)) \
$(filter-out %.bak,$(patsubst ./%,%,$(shell find . -name makefile\*)))
EDITREADME=$(patsubst ./%,%,$(shell find . -iname REA\*ME))
EDITCODE=$(EDITFORTRAN) $(EDITBASH) $(EDITAWK)
......@@ -37,6 +38,7 @@ edit: flist; vim $<
.PHONY: clean
clean: ;
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-find . -name \*.o | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist
# set Seitosh variables, if not yet set
......@@ -44,5 +46,13 @@ ifndef LOCBINDIR
LOCBINDIR=$(shell pwd)/bin
export LOCBINDIR
endif
ifndef LOCSCRIPTDIR
LOCSCRIPTDIR=$(shell pwd)/bin
export LOCSCRIPTDIR
endif
ifeq ($(origin FC),default)
FC=gfortran
export FC
endif
# ----- END OF Makefile -----
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment