forked from pasosdeJesus/SIVeL
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
91 lines (64 loc) · 3.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Reglas para distribuir sivel
# Fuentes de dominio público. Sin garantías.
# http://www.sf.net/projects/sivel
# Configuration variables
include Make.inc
USERCVS=$(USER)
USERACT=$(USERCVS),$(PROYECTO) # En caso de Sourceforge
# Variables requeridas por comdist.mak
GENDIST=Instala.txt Novedades.txt #usrdoc
ACTHOST=web.sourceforge.net
ACTDIR=/home/groups/s/si/sivel/htdocs/1.1/
GENACT=distsf
FILESACT=$(PROYECTO)-$(PRY_VERSION).tar.gz
all:
docact: #distcvs
rm -rf $(PROYECTO)-$(PRY_VERSION)
tar xvfz $(PROYECTO)-$(PRY_VERSION).tar.gz
(cd $(PROYECTO)-$(PRY_VERSION)/doc; ./conf.sh; make; make act)
limpia:
find . -name "*~" | xargs rm -f
-cd doc/ && make limpia
limpiamas: limpia
find . -type file -name "*bak" | xargs rm -f
find . -type file -name "*~" | xargs rm -f
rm -f confaux.tmp doc/conf.php
-cd doc/ && make limpiamas
limpiadist: limpiamas
rm -f fixlinks.sh
rm -f confv.sh
rm -f Anotaciones.txt varses.sh Mejoras.txt clave-* sivel-*.ini sivel-*.links.ini vardb.sh aut/conf.php DataObject.ini doc/personaliza.ent FondoSecc.png DataObject-*ini
rm -rf tmp
for i in `find . -name *plantilla`; do n=`echo $$i | sed -e "s/.plantilla//g"`; rm -f $$n; done;
rm -rf ewiki ultimoenvio.txt priv bak valida cuenta-datos.out
rm -rf st; mkdir -p st; mv sitios/nuevo.sh sitios/pordefecto sitios/pruebas st/; rm -rf sitios/*; mv st/* sitios/; rm -rf st
rm -rf mt; mkdir -p mt; mv modulos/{anexos,belicas,etiquetas,segjudicial} mt/; rm -rf modulos/*; mv mt/* modulos/; rm -rf mt
rm -rf web tmp sitios/pruebas/salida pdoc
find . -name ".#*" -exec rm {} ';'
-cd doc;make limpiadist
website/index.html: website website/index.html.in
cd website; make
# Distribution and publication
include herram/comdist.mak
# Documentation
usrdoc:
cp doc/confv.empty doc/confv.empty.bak
sed -e "s/PRY_VERSION[ ]*=.*/PRY_VERSION=\"$(PRY_VERSION)\"/g" doc/confv.empty.bak | sed -e "s|FECHA_PROX[ ]*=.*|FECHA_PROX=\"$(FECHA_PROX)\"|g" > doc/confv.empty
rm -f doc/confv.sh
(cd doc/ ; ./conf.sh; make; make ../Instala.txt; make ../Novedades.txt; make ../Creditos.txt; make ../Derechos.txt)
.PRECIOUS: .pdoc
tecdoc:
mkdir -p pdoc
phpdoc -dc SIVeL -t pdoc -d . -i "pruebas/*,conf*php,doc/*,Make.inc,*sitios**,*web*index.php,/herram/ind.php,/web/index.php"
tecdoc-act: tecdoc-$(ACT_PROC)
if (test "$(OTHER_ACT)" != "") then { make tecdoc-$(OTHER_ACT); } fi;
tecdoc-act-scp:
$(SCP) -r pdoc/* $(USERACT)@$(ACTHOST):$(ACTDIR)/tec/
tecdoc-act-ncftpput:
$(NCFTPPUT) -u $(USERACT) $(ACTHOST) $(ACTDIR)/tec/ pdoc/
doc: usrdoc Creditos.txt Instala.txt Derechos.txt Novedades.txt
docdist:
(cd doc/ ; make dist)
distsf: distcvs
cp doc/html/index.html doc/html/index.html-sinsf
sed -e "s/HTML comprimido<\/a>./ HTML comprimido<\/a>. Agradecemos el hospedaje brindado por SourceForge <a href=\"http:\/\/sourceforge.net\/projects\/sivel\"><img src=\"http:\/\/sflogo.sourceforge.net\/sflogo.php?group_id=104373&type=8\" width=\"80\" height=\"15\" alt=\"Get SIVeL at SourceForge.net. Fast, secure and Free Open Source software downloads\" \/><\/a>/g" doc/html/index.html-sinsf > doc/html/index.html