Commit e0bdeeae authored by Andrey Filippov's avatar Andrey Filippov

working on autocampars.php

parent a037a3b8
LN = ln
PROGS = autocampars launch_php_script
PHPSCRIPTS = autocampars.php
PYSCRIPTS = autocampars.py
WWW_PAGES = /www/pages
SRCS = autocampars.c launch_php_script.c
#OBJS = $(SRC:.c=.o)
OBJS = autocampars.o launch_php_script.o
BINDIR = $(DESTDIR)/usr/bin
SYSCONFDIR = $(DESTDIR)/etc
BINDIR = /usr/bin
SYSCONFDIR =/etc
CONFDIR = $(SYSCONFDIR)/elphel393
DOCUMENTROOT = $(DESTDIR)/www/pages
AUTOCAMPARS_PHP = /www/pages/autocampars.php
AUTOCAMPARS_PHP = $(WWW_PAGES)/autocampars.php
INSTALL = install
INSTMODE = 0755
......@@ -33,13 +35,16 @@ launch_php_script: launch_php_script.o
$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
install: $(PROGS) $(PHPSCRIPTS)
$(INSTALL) -d $(BINDIR)
$(INSTALL) -d $(DOCUMENTROOT)
$(INSTALL) -d $(SYSCONFDIR)
$(INSTALL) -d $(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PROGS) $(BINDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PHPSCRIPTS) $(DOCUMENTROOT)
install: $(PROGS) $(PHPSCRIPTS) $(PYSCRIPTS)
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(WWW_PAGES)
$(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)
$(INSTALL) -d $(DESTDIR)$(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PROGS) $(DESTDIR)$(BINDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PYSCRIPTS) $(DESTDIR)$(BINDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PHPSCRIPTS) $(DESTDIR)$(BINDIR)
$(LN) -sf $(BINDIR)/autocampars.py $(DESTDIR)$(WWW_PAGES)/autocampars.py
$(LN) -sf $(BINDIR)/autocampars.php $(DESTDIR)$(WWW_PAGES)/autocampars.php
clean:
rm -rf $(PROGS) *.o core .depend
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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