MAKEFILES = $(wildcard doc/examples/Makefile*)
DAEMONS = src/sc_fetch src/sc_test src/sc_deliver
COMMANDS = src/sc_codegen src/sc_dbq
+CGI = src/sc_suwi
PHPLIBS = $(wildcard src/T/*.php)
PHPDBO = $(wildcard src/T/DBO/*.php)
PHPSCHEMA = $(wildcard src/T/DBO/schema/*.ini)
DOCS = doc/README $(wildcard doc/schema.*)
EXAMPLES = $(wildcard doc/examples/*)
+UTIL = $(wildcard util/*.py)
.PHONY: all install clean
# Directorios
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/sbin
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/lib/cgi-bin
$(INSTALL) -d -m 0755 $(DESTDIR)/etc/sercom
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/doc/sercom/examples
+ $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/sercom/util
$(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/php/T/DBO/schema
$(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/ejercicios
$(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/intentos
$(INSTALL) -m 0664 $(MAKEFILES) $(DESTDIR)/var/lib/sercom
$(INSTALL) -m 0755 $(DAEMONS) $(DESTDIR)$(PREFIX)/sbin
$(INSTALL) -m 0755 $(COMMANDS) $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) -m 0755 $(CGI) $(DESTDIR)$(PREFIX)/lib/cgi-bin
$(INSTALL) -m 0644 $(PHPLIBS) $(DESTDIR)$(PREFIX)/share/php/T
$(INSTALL) -m 0644 $(PHPDBO) $(DESTDIR)$(PREFIX)/share/php/T/DBO
$(INSTALL) -m 0644 $(PHPSCHEMA) $(DESTDIR)$(PREFIX)/share/php/T/DBO/schema
$(INSTALL) -m 0644 $(DOCS) $(DESTDIR)$(PREFIX)/share/doc/sercom
$(INSTALL) -m 0644 $(EXAMPLES) $(DESTDIR)$(PREFIX)/share/doc/sercom/examples
+ $(INSTALL) -m 0755 $(UTIL) $(DESTDIR)$(PREFIX)/share/sercom/util
# Bibliotecas en Python
./setup.py install --optimize 2 --root=$(DESTDIR) --prefix=$(PREFIX)