aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d2accc5..fbf0267 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
CC=gcc
SDIR=src
+CRONDIR=cron
INSTALL=/usr/bin/install -c
MODBUSLOGCFLAGS=-I/usr/include/modbus
MODBUSLOGLIBS=-lmodbus -lconfig
MODBUSLOGBINDIR=/usr/sbin
MODBUSLOGCFGDIR=/etc
MODBUSLOGLOGDIR=/var/modbuslog
+MODBUSLOGCRONDIR=/etc/cron.d
FTPHELPERCFLAGS=
FTPHELPERLIBS=-lconfig
FTPHELPERDIR=/usr/bin
@@ -34,6 +36,7 @@ install: all
mkdir $(MODBUSLOGLOGDIR)/archive; \
fi
test -f $(MODBUSLOGLOGDIR)/interval/interval.txt || $(INSTALL) -m 644 $(SDIR)/interval.txt $(MODBUSLOGLOGDIR)/interval/interval.txt
+ test -f $(MODBUSLOGCRONDIR)/modbuslog || $(INSTALL) -m 644 $(CRONDIR)/modbuslog $(MODBUSLOGCRONDIR)/modbuslog
$(INSTALL) $(SDIR)/ftpupload $(FTPHELPERDIR)/ftpupload
$(INSTALL) $(SDIR)/ftphelper $(FTPHELPERDIR)/ftphelper
$(INSTALL) $(PHPSDIR)/readfile.php $(WWWDIR)/readfile.php