Commit e0bdeeae authored by Andrey Filippov's avatar Andrey Filippov

working on autocampars.php

parent a037a3b8
LN = ln
PROGS = autocampars launch_php_script PROGS = autocampars launch_php_script
PHPSCRIPTS = autocampars.php PHPSCRIPTS = autocampars.php
PYSCRIPTS = autocampars.py
WWW_PAGES = /www/pages
SRCS = autocampars.c launch_php_script.c SRCS = autocampars.c launch_php_script.c
#OBJS = $(SRC:.c=.o) #OBJS = $(SRC:.c=.o)
OBJS = autocampars.o launch_php_script.o OBJS = autocampars.o launch_php_script.o
BINDIR = $(DESTDIR)/usr/bin BINDIR = /usr/bin
SYSCONFDIR = $(DESTDIR)/etc SYSCONFDIR =/etc
CONFDIR = $(SYSCONFDIR)/elphel393 CONFDIR = $(SYSCONFDIR)/elphel393
DOCUMENTROOT = $(DESTDIR)/www/pages AUTOCAMPARS_PHP = $(WWW_PAGES)/autocampars.php
AUTOCAMPARS_PHP = /www/pages/autocampars.php
INSTALL = install INSTALL = install
INSTMODE = 0755 INSTMODE = 0755
...@@ -33,13 +35,16 @@ launch_php_script: launch_php_script.o ...@@ -33,13 +35,16 @@ launch_php_script: launch_php_script.o
$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@
install: $(PROGS) $(PHPSCRIPTS) install: $(PROGS) $(PHPSCRIPTS) $(PYSCRIPTS)
$(INSTALL) -d $(BINDIR) $(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DOCUMENTROOT) $(INSTALL) -d $(DESTDIR)$(WWW_PAGES)
$(INSTALL) -d $(SYSCONFDIR) $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)
$(INSTALL) -d $(CONFDIR) $(INSTALL) -d $(DESTDIR)$(CONFDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PROGS) $(BINDIR) $(INSTALL) $(OWN) -m $(INSTMODE) $(PROGS) $(DESTDIR)$(BINDIR)
$(INSTALL) $(OWN) -m $(INSTMODE) $(PHPSCRIPTS) $(DOCUMENTROOT) $(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: clean:
rm -rf $(PROGS) *.o core .depend 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