File: makefile.in

package info (click to toggle)
galois 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 956 kB
  • sloc: cpp: 4,093; xml: 2,462; makefile: 181
file content (126 lines) | stat: -rw-r--r-- 3,570 bytes parent folder | download
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# makefile -- makefile for galois documentation directory.
# Copyright (C) 2012-2022 Gerardo Ballabio
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# @configure_input@

prefix = ${DESTDIR}@prefix@

AC = makefile galois.6 galois-it.6 galois-C.omf galois-it.omf
BAK = *~

FIGURES = figure1.png figure2.png figure3.png
LICENSES = gpl.dbk fdl-1.3.xml
XML_DEPS = ${FIGURES} ${LICENSES}
XML_LOCALES = it
HTML = galois.html galois-it.html
HTML_DEPS = ${FIGURES}
PDF = galois.pdf galois-it.pdf
MAN_LOCALES = it
OMF = galois-C.omf galois-it.omf

.SUFFIXES : .xml .html .pdf

.xml.html :
	xmlto html-nochunks $<
.xml.pdf :
	xmlto --with-dblatex pdf $<

default:

html : ${HTML}
pdf : ${PDF}

# other targets
clean :
	- rm -f ${BAK}
distclean : clean
	- rm -f ${AC}

install-xml :
	mkdir -p ${prefix}/share/gnome/help/galois/C
	cp galois.xml ${XML_DEPS} ${prefix}/share/gnome/help/galois/C
	for L in ${XML_LOCALES} ; do \
	    mkdir -p ${prefix}/share/gnome/help/galois/$$L ;\
	    cp galois-$$L.xml \
	       ${prefix}/share/gnome/help/galois/$$L/galois.xml ;\
	    ( cd ${prefix}/share/gnome/help/galois/$$L ;\
	      for D in ${XML_DEPS} ; do \
	          ln -fs ../C/$$D . ;\
	      done ) ;\
	done

install-html :
	mkdir -p ${prefix}/share/doc/galois
	cp ${HTML} ${HTML_DEPS} ${prefix}/share/doc/galois

install-man :
	mkdir -p ${prefix}/share/man/man6
	cp galois.6 ${prefix}/share/man/man6
	gzip -9 -f ${prefix}/share/man/man6/galois.6
	for L in ${MAN_LOCALES} ; do \
	    mkdir -p ${prefix}/share/man/$$L/man6 ;\
	    cp galois-$$L.6 ${prefix}/share/man/$$L/man6/galois.6 ;\
	    gzip -9 -f ${prefix}/share/man/$$L/man6/galois.6 ;\
	done

install-omf :
	mkdir -p ${prefix}/share/omf/galois
	cp ${OMF} ${prefix}/share/omf/galois

install-pdf :
	mkdir -p ${prefix}/share/doc/galois
	cp ${PDF} ${prefix}/share/doc/galois

# don't install pdf by default (not shipped with source tarball)
install : install-xml install-html install-man install-omf

uninstall-xml :
	- cd ${prefix}/share/gnome/help/galois/C && \
	  rm -f galois.xml ${XML_DEPS}
	- rmdir ${prefix}/share/gnome/help/galois/C
	- for L in it ; do \
	    cd ${prefix}/share/gnome/help/galois/$$L && \
	    rm -f galois.xml ${XML_DEPS} ;\
	    rmdir ${prefix}/share/gnome/help/galois/$$L ;\
	done
	- rmdir ${prefix}/share/gnome/help/galois

uninstall-html :
	- cd ${prefix}/share/doc/galois && rm -f ${HTML} ${HTML_DEPS}
	- rmdir ${prefix}/share/doc/galois

uninstall-man :
	- cd ${prefix}/share/man/man6 && rm -f galois.6.gz
	- for L in it; do \
	    cd ${prefix}/share/man/it/man6 && rm -f galois.6.gz ;\
	done

uninstall-omf :
	- cd ${prefix}/share/omf/galois && rm -f ${OMF}
	- rmdir ${prefix}/share/omf/galois

uninstall-pdf :
	- cd ${prefix}/share/doc/galois && rm -f ${PDF}
	- rmdir ${prefix}/share/doc/galois

uninstall : uninstall-xml uninstall-html uninstall-man uninstall-omf \
	    uninstall-pdf

# dependencies
galois.html : ${FIGURES}
galois.pdf : ${FIGURES}
galois-it.html : ${FIGURES}
galois-it.pdf : ${FIGURES}