aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b05f25..7659c27 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ MODBUSLOGLOGDIR=/var/modbuslog
FTPHELPERCFLAGS=
FTPHELPERLIBS=-lconfig
FTPHELPERDIR=/usr/bin
+PHPSDIR=php
+WWWDIR=/var/www
all: modbuslog ftphelper
@@ -25,7 +27,9 @@ install: all
then \
mkdir $(MODBUSLOGLOGDIR); \
mkdir $(MODBUSLOGLOGDIR)/interval; \
+ mkdir $(MODBUSLOGLOGDIR)/archive; \
fi
test -f $(MODBUSLOGLOGDIR)/interval/interval.txt || $(INSTALL) -m 644 $(SDIR)/interval.txt $(MODBUSLOGLOGDIR)/interval/interval.txt
$(INSTALL) $(SDIR)/ftpupload $(FTPHELPERDIR)/ftpupload
$(INSTALL) $(SDIR)/ftphelper $(FTPHELPERDIR)/ftphelper
+ $(INSTALL) $(PHPSDIR)/readfile.php $(WWWDIR)/readfile.php