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