1 # sercom Makefile (probablemente _demasiado_ Debian friendly)
3 INSTALL = install -o root -g root
7 CONFS = $(wildcard doc/examples/*.ini)
8 MAKEFILES = $(wildcard doc/examples/Makefile*)
9 DAEMONS = src/sc_fetch src/sc_test src/sc_deliver
10 COMMANDS = src/sc_codegen src/sc_dbq
11 PHPLIBS = $(wildcard src/T/*.php)
12 PHPDBO = $(wildcard src/T/DBO/*.php)
13 PHPSCHEMA = $(wildcard src/T/DBO/schema/*.ini)
14 DOCS = doc/README $(wildcard doc/schema.*)
15 EXAMPLES = $(wildcard doc/examples/*)
17 .PHONY: all install clean
23 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/sbin
24 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
25 $(INSTALL) -d -m 0755 $(DESTDIR)/etc/sercom
26 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/doc/sercom/examples
27 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/php/T/DBO/schema
28 $(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/ejercicios
29 $(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/intentos
31 $(INSTALL) -m 0644 $(CONFS) $(DESTDIR)/etc/sercom
32 $(INSTALL) -m 0664 $(MAKEFILES) $(DESTDIR)/var/lib/sercom
33 $(INSTALL) -m 0755 $(DAEMONS) $(DESTDIR)$(PREFIX)/sbin
34 $(INSTALL) -m 0755 $(COMMANDS) $(DESTDIR)$(PREFIX)/bin
35 $(INSTALL) -m 0644 $(PHPLIBS) $(DESTDIR)$(PREFIX)/share/php/T
36 $(INSTALL) -m 0644 $(PHPDBO) $(DESTDIR)$(PREFIX)/share/php/T/DBO
37 $(INSTALL) -m 0644 $(PHPSCHEMA) $(DESTDIR)$(PREFIX)/share/php/T/DBO/schema
38 $(INSTALL) -m 0644 $(DOCS) $(DESTDIR)$(PREFIX)/share/doc/sercom
39 $(INSTALL) -m 0644 $(EXAMPLES) $(DESTDIR)$(PREFIX)/share/doc/sercom/examples
40 # Bibliotecas en Python
41 ./setup.py install --optimize 2 --root=$(DESTDIR) --prefix=$(PREFIX)