Commit c03a5381 authored by thomas.forbriger's avatar thomas.forbriger

Makefile [FEATURE]: install scripts too

parent c2751d18
......@@ -11,23 +11,24 @@
# calex conflicts with SFF version of calex
# 07/08/2012 V1.2 damb: added calex12 from EW
# 19/09/2012 V1.3 thof: vendor import of recent calex version
# 15/09/2016 V1.4 thof: install shell scripts and awk scripts
#
# ============================================================================
#
# programs will be installed in $LOCBINDIR
# shell scripts will be installed in $LOCSCRIPTDIR
PROGRAMS=seife/seife calex/calex calex/calex10 calex/trical calex/qcalex \
sleeman/bandnois sleeman/tri2db sleeman/tricrosp sleeman/twocrosp \
dispcal/dispcal tiltcal/tiltcal
.PHONY: all
all: install
.PHONY: install
install: $(addprefix $(LOCBINDIR)/,$(PROGRAMS))
$(LOCBINDIR)/%: %
mkdir -pv $(LOCBINDIR)
/bin/mv -fv $< $(LOCBINDIR)
SCRIPTS=winplot/winplot.sh \
sleeman/tricrosp.sh \
calex/calexiterextract.awk \
calex/calexoutextract.awk \
sleeman/tridb2table.awk \
sleeman/bandnois2table.awk \
sleeman/tricrosp2table.awk
#----------------------------------------------------------------------
# check mandatory environment variable settings
......@@ -36,8 +37,27 @@ $(LOCBINDIR)/%: %
CHECKVAR=$(if $($(1)),,$(error ERROR: missing variable $(1)))
CHECKVARS=$(foreach var,$(1),$(call CHECKVAR,$(var)))
$(call CHECKVARS,LOCBINDIR)
$(call CHECKVARS,LOCBINDIR LOCSCRIPTDIR)
# ----------------------------------------------------------------------
#
.PHONY: all
all: install
.PHONY: install
install: $(addprefix $(LOCBINDIR)/,$(PROGRAMS)) \
$(addprefix $(LOCSCRIPTDIR)/,$(SCRIPTS))
$(LOCBINDIR)/%: %
mkdir -pv $(LOCBINDIR)
/bin/mv -fv $< $(LOCBINDIR)
$(LOCSCRIPTDIR)/%: %
mkdir -pv $(LOCSCRIPTDIR)
/bin/cp -fv $< $(LOCSCRIPTDIR)
# ----------------------------------------------------------------------
#
FLAGS += $(MYFLAGS)
FFLAGS += -ff2c -Wall -ffixed-line-length-0 -fno-backslash $(FLAGS)
CFLAGS += $(FLAGS)
......
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