# sercom Makefile (probablemente _demasiado_ Debian friendly) INSTALL = install -o root -g root PREFIX = /usr/local CONFS = $(wildcard doc/examples/*.ini) 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/*) .PHONY: all install clean all: install: # 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/php/T/DBO/schema $(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/ejercicios $(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/intentos # Archivos $(INSTALL) -m 0644 $(CONFS) $(DESTDIR)/etc/sercom $(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 # Bibliotecas en Python ./setup.py install --optimize 2 --root=$(DESTDIR) --prefix=$(PREFIX) clean: