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
12 PHPLIBS = $(wildcard src/T/*.php)
13 PHPDBO = $(wildcard src/T/DBO/*.php)
14 PHPSCHEMA = $(wildcard src/T/DBO/schema/*.ini)
15 DOCS = doc/README $(wildcard doc/schema.*)
16 EXAMPLES = $(wildcard doc/examples/*)
18 .PHONY: all install clean
24 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/sbin
25 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin
26 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/lib/cgi-bin
27 $(INSTALL) -d -m 0755 $(DESTDIR)/etc/sercom
28 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/doc/sercom/examples
29 $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/share/php/T/DBO/schema
30 $(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/ejercicios
31 $(INSTALL) -d -m 2775 $(DESTDIR)$/var/lib/sercom/intentos
33 $(INSTALL) -m 0644 $(CONFS) $(DESTDIR)/etc/sercom
34 $(INSTALL) -m 0664 $(MAKEFILES) $(DESTDIR)/var/lib/sercom
35 $(INSTALL) -m 0755 $(DAEMONS) $(DESTDIR)$(PREFIX)/sbin
36 $(INSTALL) -m 0755 $(COMMANDS) $(DESTDIR)$(PREFIX)/bin
37 $(INSTALL) -m 0755 $(CGI) $(DESTDIR)$(PREFIX)/lib/cgi-bin
38 $(INSTALL) -m 0644 $(PHPLIBS) $(DESTDIR)$(PREFIX)/share/php/T
39 $(INSTALL) -m 0644 $(PHPDBO) $(DESTDIR)$(PREFIX)/share/php/T/DBO
40 $(INSTALL) -m 0644 $(PHPSCHEMA) $(DESTDIR)$(PREFIX)/share/php/T/DBO/schema
41 $(INSTALL) -m 0644 $(DOCS) $(DESTDIR)$(PREFIX)/share/doc/sercom
42 $(INSTALL) -m 0644 $(EXAMPLES) $(DESTDIR)$(PREFIX)/share/doc/sercom/examples
43 # Bibliotecas en Python
44 ./setup.py install --optimize 2 --root=$(DESTDIR) --prefix=$(PREFIX)