Commit 5e5580eb authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

install mechanism improved and csbackobs added

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4651
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 099b926a
......@@ -23,7 +23,9 @@
# REVISIONS and CHANGES
# 15/01/2012 V0.1 Daniel Armbruster
# 16/01/2012 V0.2 added package rule
# 28/02/2012 V0.3 smaller modifications - added csbackobs.py
# ----------------------------------------------------------------------------
PROGRAMS=csback2cron.py csbackntfy.py csbackgen.py csbackchk.py csbackobs.py
.PHONY: all
all: install doc
......@@ -44,11 +46,8 @@ PYTHON=$(shell env which python)
# ----------------------------------------------------------------------------
.PHONY: clean
clean:
/bin/rm -rvf $(LOCBINDIR)/csback2cron
/bin/rm -rvf $(LOCBINDIR)/csback2ntfy
/bin/rm -rvf $(LOCBINDIR)/csback2gen
/bin/rm -rvf $(LOCBINDIR)/csback2chk
clean:
/bin/rm -rvf $(addprefix $(LOCBINDIR)/,$(patsubst %.py,%,$(PROGRAMS)))
$(MAKE) -C doc clean
# ----------------------------------------------------------------------------
......@@ -64,14 +63,14 @@ $(call CHECKPROGS, RSYNC CRON SYSLOGNG LOGROTATE PYTHON)
# ----------------------------------------------------------------------------
PWD=$(shell env pwd)
installscripts:
$(addprefix $(LOCBINDIR)/, $(PROGRAMS)): $(addprefix $(PWD)/, $(PROGRAMS))
$(LOCBINDIR)/%: %.py
mkdir -pv $(LOCBINDIR)
chmod +x $(PWD)/csback2cron.py $(PWD)/csbackntfy.py $(PWD)/csbackgen.py \
$(PWD)/csbackchk.py
ln -fs $(PWD)/csback2cron.py $(LOCBINDIR)/csback2cron
ln -fs $(PWD)/csbackntfy.py $(LOCBINDIR)/csbackntfy
ln -fs $(PWD)/csbackgen.py $(LOCBINDIR)/csbackgen
ln -fs $(PWD)/csbackchk.py $(LOCBINDIR)/csbackchk
ln -fs $(addprefix $(PWD)/,$<) $@
chmod +x $(addprefix $(PWD)/,$<)
installscripts: $(addprefix $(LOCBINDIR)/, $(patsubst %.py,%,$(PROGRAMS)))
# ----------------------------------------------------------------------------
pdfdoc:
......
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