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
$(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 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)