wlt: link font library statically
[platform/upstream/kmscon.git] / Makefile.am
1 #
2 # Kmscon - Global Makefile
3 # Copyright (c) 2012 David Herrmann <dh.herrmann@googlemail.com>
4 #
5
6 ACLOCAL_AMFLAGS = -I m4
7 SUBDIRS = \
8         .
9 include_HEADERS =
10 EXTRA_DIST = \
11         README \
12         COPYING \
13         NEWS \
14         docs/kmscon.service \
15         docs/kmsconvt@.service
16 CLEANFILES =
17 pkgconfigdir = $(libdir)/pkgconfig
18 pkgconfig_DATA =
19 MANPAGES =
20 MANPAGES_ALIASES =
21 TPHONY =
22
23 bin_PROGRAMS =
24 check_PROGRAMS =
25 noinst_PROGRAMS = \
26         genshader \
27         genunifont
28 noinst_LTLIBRARIES =
29 lib_LTLIBRARIES =
30
31 moduledir = @libdir@/kmscon
32 module_LTLIBRARIES =
33
34 #
35 # Default CFlags
36 # Make all files include "config.h" by default. This shouldn't cause any
37 # problems and we cannot forget to include it anymore.
38 #
39 # Also make the linker discard all unused symbols.
40 #
41 # When compiling in debug mode, we enable debug symbols so debugging with gdb
42 # is easier. If optimizations are disabled, we pass -O0 to the compiler.
43 # Otherwise, we use standard optimizations -O2.
44 #
45
46 AM_CFLAGS = \
47         -Wall
48 AM_CPPFLAGS = \
49         -DBUILD_MODULE_DIR='"$(moduledir)"' \
50         -include $(top_builddir)/config.h \
51         -I $(srcdir)/src
52 AM_LDFLAGS = \
53         -Wl,--as-needed
54
55 if BUILD_ENABLE_DEBUG
56 AM_CFLAGS += -g
57 endif
58
59 if BUILD_ENABLE_OPTIMIZATIONS
60 AM_CFLAGS += -O2
61 else
62 AM_CFLAGS += -O0
63 endif
64
65 #
66 # SHL - Static Helper Library
67 # The SHL subsystem contains several small code pieces used all over kmscon and
68 # other applications.
69 #
70 # Simply include $(SHL_*) in your source-file list.
71 # SHL_MISC needs xkbcommon
72 # SHL_REGISTER needs pthread
73 #
74
75 SHL_DLIST = \
76         src/shl_dlist.h
77 SHL_ARRAY = \
78         src/shl_array.h
79 SHL_HASHTABLE = \
80         src/shl_hashtable.h \
81         external/htable.h \
82         external/htable.c
83 SHL_RING = \
84         src/shl_ring.h
85 SHL_TIMER = \
86         src/shl_timer.h
87 SHL_LLOG = \
88         src/shl_llog.h
89 SHL_HOOK = \
90         src/shl_hook.h \
91         $(SHL_DLIST)
92 SHL_MISC = \
93         src/shl_misc.h
94 SHL_REGISTER = \
95         src/shl_register.h \
96         $(SHL_DLIST)
97
98 #
99 # GIT-HEAD helper
100 # The file ./src/githead.h contains a constant BUILD_GIT_HEAD which is defined
101 # to the string returned by "git describe". We need to adjust this string for
102 # every build and correctly rebuild any sources that depend on it. Therefore,
103 # you should use this file rarely as it causes rebuilds on every git-commit.
104 #
105 # We have a helper-script ./src/genversion.sh that takes as argument the header
106 # file and creates it if necessary. It updates it only if the new git-describe
107 # string is different to the old one. So the file is only modified on changes.
108 # Hence, we can use it as normal dependency in this Makefile.
109 # However, we need to run this script on _every_ "make" invocation before any
110 # recipy is executed. To achieve this, we use $(shell ...) and assign it to a
111 # "simply expanded" variable (:=) so the shell command is executed on
112 # variable-declaration and not during expansion.
113 #
114 # Note that we must not clean ./src/githead.h ever! If we would, a distribution
115 # tarball might delete that file and have no way to recreate it.
116 # We could delete it on something like "make maintainerclean", but then again,
117 # it seems unnecessary so lets simply not clean it at all.
118 #
119 # If the helper-script is executed in a directory that is not a git-repository
120 # (like a distribution tarball) and githead.h exists, then it does nothing as it
121 # expects githead.h to be correctly written by "make dist".
122 # However, if githead.h does not exist, it will print a warning and write
123 # "<unknown>" as git-revision.
124 # This guarantees, that githead.h is always present and has the most correct
125 # value that we can get under any conditions.
126 #
127 # The $(emptyvariable) expansion below is used for broken $(shell ...)
128 # syntax-highlighting algorithms in many existing editors.
129 #
130
131 EXTRA_DIST += src/genversion.sh
132 GITHEAD:=$(shell $(emptyvariable)"$(srcdir)/src/genversion.sh" "$(srcdir)/src/githead.h")
133
134 #
135 # libeloop
136 # This library contains the whole event-loop implementation of kmscon. It is
137 # compiled into a separate object to allow using it in several other programs.
138 #
139
140 if BUILD_ENABLE_ELOOP
141 lib_LTLIBRARIES += libeloop.la
142 include_HEADERS += src/eloop.h
143 pkgconfig_DATA += docs/pc/libeloop.pc
144 endif
145
146 libeloop_la_SOURCES = \
147         $(SHL_DLIST) \
148         $(SHL_LLOG) \
149         $(SHL_HOOK) \
150         src/eloop.h \
151         src/eloop.c
152
153 libeloop_la_CPPFLAGS = \
154         $(AM_CPPFLAGS)
155 libeloop_la_LIBADD =
156 libeloop_la_LDFLAGS = \
157         -version-info 1:0:0
158
159
160 if BUILD_ENABLE_ELOOP_DBUS
161 libeloop_la_SOURCES += \
162         external/dbus-common.h \
163         external/dbus-loop.h \
164         external/dbus-loop.c
165 libeloop_la_CPPFLAGS += \
166         $(DBUS_CFLAGS)
167 libeloop_la_LIBADD += \
168         $(DBUS_LIBS)
169 endif
170
171 #
172 # libtsm
173 # The Terminal-emulator State Machine is a library that implements the whole VTE
174 # layer and everything related to it. It has no external dependencies so it can
175 # be used to implement any kind of terminal emulator or debugger.
176 #
177
178 if BUILD_ENABLE_TSM
179 lib_LTLIBRARIES += \
180         libtsm.la
181 include_HEADERS += \
182         src/tsm_screen.h \
183         src/tsm_unicode.h \
184         src/tsm_vte.h
185 pkgconfig_DATA += \
186         docs/pc/libtsm.pc
187 endif
188
189 libtsm_la_SOURCES = \
190         $(SHL_LLOG) \
191         $(SHL_TIMER) \
192         $(SHL_ARRAY) \
193         $(SHL_HASHTABLE) \
194         src/tsm_screen.h \
195         src/tsm_screen.c \
196         src/tsm_unicode.h \
197         src/tsm_unicode.c \
198         src/tsm_vte.h \
199         src/tsm_vte.c \
200         src/tsm_vte_charsets.c \
201         external/wcwidth.h \
202         external/wcwidth.c
203
204 libtsm_la_CPPFLAGS = \
205         $(AM_CPPFLAGS) \
206         $(XKBCOMMON_CFLAGS)
207 libtsm_la_LDFLAGS = \
208         $(XKBCOMMON_LIBS) \
209         -version-info 1:0:0
210
211 #
212 # libuterm
213 # The uterm library provides helpers to create terminals in user-space. They
214 # are not limited to text-based terminals but rather provide graphics contexts
215 # so arbitrary output can be displayed. Additionally, they provide VT
216 # abstractions and an input layer
217 #
218
219 if BUILD_ENABLE_UTERM
220 lib_LTLIBRARIES += libuterm.la
221 include_HEADERS += \
222         src/uterm_input.h \
223         src/uterm_monitor.h \
224         src/uterm_video.h \
225         src/uterm_vt.h
226 pkgconfig_DATA += docs/pc/libuterm.pc
227 endif
228
229 libuterm_la_SOURCES = \
230         $(SHL_DLIST) \
231         $(SHL_HOOK) \
232         $(SHL_MISC) \
233         $(SHL_TIMER) \
234         src/uterm_input.h \
235         src/uterm_monitor.h \
236         src/uterm_video.h \
237         src/uterm_vt.h \
238         src/uterm_input_internal.h \
239         src/uterm_video_internal.h \
240         src/uterm_systemd_internal.h \
241         src/uterm_video.c \
242         src/uterm_monitor.c \
243         src/uterm_vt.c \
244         src/uterm_input.c \
245         src/uterm_input_uxkb.c
246
247 nodist_libuterm_la_SOURCES =
248
249 libuterm_la_CPPFLAGS = \
250         $(AM_CPPFLAGS) \
251         $(XKBCOMMON_CFLAGS)
252 libuterm_la_LIBADD = \
253         $(XKBCOMMON_LIBS) \
254         libeloop.la
255 libuterm_la_LDFLAGS = \
256         -version-info 1:0:0
257
258 if BUILD_ENABLE_MULTI_SEAT
259 libuterm_la_SOURCES += src/uterm_systemd.c
260 libuterm_la_CPPFLAGS += $(SYSTEMD_CFLAGS)
261 libuterm_la_LIBADD += $(SYSTEMD_LIBS)
262 endif
263
264 if BUILD_ENABLE_HOTPLUG
265 libuterm_la_CPPFLAGS += $(UDEV_CFLAGS)
266 libuterm_la_LIBADD += $(UDEV_LIBS)
267 endif
268
269 if BUILD_ENABLE_VIDEO_FBDEV
270 libuterm_la_SOURCES += \
271         src/uterm_fbdev_internal.h \
272         src/uterm_fbdev_video.c \
273         src/uterm_fbdev_render.c
274 endif
275
276 if BUILD_ENABLE_VIDEO_DRM2D
277 libuterm_la_SOURCES += \
278         src/uterm_drm2d_internal.h \
279         src/uterm_drm2d_video.c \
280         src/uterm_drm2d_render.c
281 libuterm_la_CPPFLAGS += $(DRM_CFLAGS)
282 libuterm_la_LIBADD += $(DRM_LIBS)
283 endif
284
285 if BUILD_ENABLE_VIDEO_DRM3D
286 libuterm_la_SOURCES += \
287         src/uterm_drm3d_internal.h \
288         src/uterm_drm3d_video.c \
289         src/uterm_drm3d_render.c \
290         src/static_gl.h \
291         src/static_gl_math.c \
292         src/static_gl_shader.c
293 nodist_libuterm_la_SOURCES += \
294         src/static_shaders.c
295 libuterm_la_CPPFLAGS += \
296         $(DRM_CFLAGS) \
297         $(EGL_CFLAGS) \
298         $(GBM_CFLAGS) \
299         $(GLES2_CFLAGS)
300 libuterm_la_LIBADD += \
301         $(DRM_LIBS) \
302         $(EGL_LIBS) \
303         $(GBM_LIBS) \
304         $(GLES2_LIBS)
305 endif
306
307 # add shared sources only once
308 UTERM_DRM_SHARED_SRC = \
309         src/uterm_drm_shared_internal.h \
310         src/uterm_drm_shared.c
311 if BUILD_ENABLE_VIDEO_DRM2D
312 libuterm_la_SOURCES += $(UTERM_DRM_SHARED_SRC)
313 else
314 if BUILD_ENABLE_VIDEO_DRM3D
315 libuterm_la_SOURCES += $(UTERM_DRM_SHARED_SRC)
316 endif
317 endif
318
319 #
320 # Shaders
321 # As there is no need to modify shaders at run-time, we statically compile them
322 # into object files. As autotools would ignore them, we need to add them to
323 # EXTRA_DIST.
324 # The program that converts the shaders into C-source files is "genshader". It's
325 # pretty simple and just creates a string with the shader source as content.
326 #
327
328 SHADERS = \
329         $(srcdir)/src/static_fill.vert \
330         $(srcdir)/src/static_fill.frag \
331         $(srcdir)/src/static_blend.vert \
332         $(srcdir)/src/static_blend.frag \
333         $(srcdir)/src/static_blit.vert \
334         $(srcdir)/src/static_blit.frag \
335         $(srcdir)/src/static_gltex.vert \
336         $(srcdir)/src/static_gltex.frag
337
338 EXTRA_DIST += $(SHADERS)
339 CLEANFILES += src/static_shaders.c
340 genshader_SOURCES = src/genshader.c
341
342 src/static_shaders.c: $(SHADERS) genshader$(EXEEXT)
343         $(AM_V_GEN)./genshader$(EXEEXT) src/static_shaders.c $(SHADERS)
344
345 #
346 # Unifont Generator
347 # This generates the unifont sources from raw hex-encoded font data.
348 #
349
350 UNIFONT = src/font_unifont_data.hex
351
352 EXTRA_DIST += $(UNIFONT)
353 CLEANFILES += src/font_unifont_data.c
354 genunifont_SOURCES = src/genunifont.c
355
356 src/font_unifont_data.c: $(UNIFONT) genunifont$(EXEEXT)
357         $(AM_V_GEN)./genunifont$(EXEEXT) src/font_unifont_data.c $(UNIFONT)
358
359 #
360 # Kmscon Modules
361 #
362
363 if BUILD_ENABLE_FONT_UNIFONT
364 module_LTLIBRARIES += mod-unifont.la
365 endif
366
367 mod_unifont_la_SOURCES = \
368         src/kmscon_module_interface.h \
369         src/githead.h \
370         src/font_unifont.c \
371         src/kmscon_mod_unifont.c
372 nodist_mod_unifont_la_SOURCES = \
373         src/font_unifont_data.c
374 mod_unifont_la_LDFLAGS = \
375         -module \
376         -avoid-version
377
378 if BUILD_ENABLE_FONT_FREETYPE2
379 module_LTLIBRARIES += mod-freetype2.la
380 endif
381
382 mod_freetype2_la_SOURCES = \
383         $(SHL_DLIST) \
384         $(SHL_HASHTABLE) \
385         src/kmscon_module_interface.h \
386         src/githead.h \
387         src/font_freetype2.c \
388         src/kmscon_mod_freetype2.c
389 mod_freetype2_la_CPPFLAGS = \
390         $(AM_CPPFLAGS) \
391         $(FREETYPE2_CFLAGS)
392 mod_freetype2_la_LIBADD = \
393         $(FREETYPE2_LIBS) \
394         -lpthread \
395         libtsm.la
396 mod_freetype2_la_LDFLAGS = \
397         -module \
398         -avoid-version
399
400 if BUILD_ENABLE_FONT_PANGO
401 module_LTLIBRARIES += mod-pango.la
402 endif
403
404 mod_pango_la_SOURCES = \
405         $(SHL_DLIST) \
406         $(SHL_HASHTABLE) \
407         src/kmscon_module_interface.h \
408         src/githead.h \
409         src/font_pango.c \
410         src/kmscon_mod_pango.c
411 mod_pango_la_CPPFLAGS = \
412         $(AM_CPPFLAGS) \
413         $(PANGO_CFLAGS)
414 mod_pango_la_LIBADD = \
415         $(PANGO_LIBS) \
416         -lpthread \
417         libtsm.la
418 mod_pango_la_LDFLAGS = \
419         -module \
420         -avoid-version
421
422 if BUILD_ENABLE_RENDERER_BBULK
423 module_LTLIBRARIES += mod-bbulk.la
424 endif
425
426 mod_bbulk_la_SOURCES = \
427         src/kmscon_module_interface.h \
428         src/githead.h \
429         src/text_bbulk.c \
430         src/kmscon_mod_bbulk.c
431 mod_bbulk_la_LDFLAGS = \
432         -module \
433         -avoid-version
434
435 if BUILD_ENABLE_RENDERER_GLTEX
436 module_LTLIBRARIES += mod-gltex.la
437 endif
438
439 mod_gltex_la_SOURCES = \
440         src/kmscon_module_interface.h \
441         src/githead.h \
442         src/text_gltex.c \
443         src/static_gl.h \
444         src/static_gl_math.c \
445         src/static_gl_shader.c \
446         src/kmscon_mod_gltex.c
447 nodist_mod_gltex_la_SOURCES = \
448         src/static_shaders.c
449 mod_gltex_la_CPPFLAGS = \
450         $(AM_CPPFLAGS) \
451         $(GLES2_CFLAGS)
452 mod_gltex_la_LIBADD = \
453         $(GLES2_LIBS)
454 mod_gltex_la_LDFLAGS = \
455         -module \
456         -avoid-version
457
458 if BUILD_ENABLE_RENDERER_CAIRO
459 module_LTLIBRARIES += mod-cairo.la
460 endif
461
462 mod_cairo_la_SOURCES = \
463         src/kmscon_module_interface.h \
464         src/githead.h \
465         src/text_cairo.c \
466         src/kmscon_mod_cairo.c
467 mod_cairo_la_CPPFLAGS = \
468         $(AM_CPPFLAGS) \
469         $(CAIRO_CFLAGS)
470 mod_cairo_la_LIBADD = \
471         $(CAIRO_LIBS)
472 mod_cairo_la_LDFLAGS = \
473         -module \
474         -avoid-version
475
476 if BUILD_ENABLE_RENDERER_PIXMAN
477 module_LTLIBRARIES += mod-pixman.la
478 endif
479
480 mod_pixman_la_SOURCES = \
481         src/kmscon_module_interface.h \
482         src/githead.h \
483         src/text_pixman.c \
484         src/kmscon_mod_pixman.c
485 mod_pixman_la_CPPFLAGS = \
486         $(AM_CPPFLAGS) \
487         $(PIXMAN_CFLAGS)
488 mod_pixman_la_LIBADD = \
489         $(PIXMAN_LIBS)
490 mod_pixman_la_LDFLAGS = \
491         -module \
492         -avoid-version
493
494 #
495 # Binaries
496 # These are the sources for the main binaries and test programs. They mostly
497 # consists of a single source file only and include all the libraries that are
498 # built as part of kmscon.
499 #
500
501 if BUILD_ENABLE_KMSCON
502 bin_PROGRAMS += kmscon
503 check_PROGRAMS += \
504         test_output \
505         test_vt \
506         test_input \
507         test_key
508 MANPAGES += docs/man/kmscon.1
509 endif
510
511 kmscon_SOURCES = \
512         $(SHL_DLIST) \
513         $(SHL_MISC) \
514         $(SHL_ARRAY) \
515         $(SHL_HASHTABLE) \
516         $(SHL_RING) \
517         $(SHL_TIMER) \
518         $(SHL_HOOK) \
519         $(SHL_REGISTER) \
520         src/githead.h \
521         src/conf.h \
522         src/conf.c \
523         src/log.h \
524         src/log.c \
525         src/pty.h \
526         src/pty.c \
527         src/font.h \
528         src/font.c \
529         src/font_8x16.c \
530         src/text.h \
531         src/text.c \
532         src/text_bblit.c \
533         src/kmscon_module_interface.h \
534         src/kmscon_module.h \
535         src/kmscon_module.c \
536         src/kmscon_terminal.h \
537         src/kmscon_dummy.h \
538         src/kmscon_cdev.h \
539         src/kmscon_seat.h \
540         src/kmscon_seat.c \
541         src/kmscon_conf.h \
542         src/kmscon_conf.c \
543         src/kmscon_main.c
544 nodist_kmscon_SOURCES =
545
546 kmscon_CPPFLAGS = \
547         $(AM_CPPFLAGS) \
548         $(XKBCOMMON_CFLAGS)
549 kmscon_LDADD = \
550         $(XKBCOMMON_LIBS) \
551         libeloop.la \
552         libuterm.la \
553         -lpthread \
554         -ldl
555 kmscon_LDFLAGS = \
556         -rdynamic
557
558 if BUILD_ENABLE_SESSION_DUMMY
559 kmscon_SOURCES += src/kmscon_dummy.c
560 endif
561
562 if BUILD_ENABLE_SESSION_TERMINAL
563 kmscon_SOURCES += src/kmscon_terminal.c
564 kmscon_LDADD += libtsm.la
565 endif
566
567 if BUILD_ENABLE_SESSION_CDEV
568 kmscon_SOURCES += src/kmscon_cdev.c
569 kmscon_CPPFLAGS += $(FUSE_CFLAGS)
570 kmscon_LDADD += $(FUSE_LIBS)
571 endif
572
573 #
574 # Wayland Terminal
575 #
576
577 if BUILD_ENABLE_WLTERM
578 bin_PROGRAMS += wlterm
579 endif
580
581 wlterm_SOURCES = \
582         $(SHL_MISC) \
583         $(SHL_ARRAY) \
584         $(SHL_DLIST) \
585         $(SHL_HOOK) \
586         $(SHL_REGISTER) \
587         $(SHL_HASHTABLE) \
588         src/wlt_main.h \
589         src/wlt_main.c \
590         src/wlt_toolkit.h \
591         src/wlt_toolkit.c \
592         src/wlt_theme.h \
593         src/wlt_theme.c \
594         src/wlt_terminal.h \
595         src/wlt_terminal.c \
596         src/log.h \
597         src/log.c \
598         src/conf.h \
599         src/conf.c \
600         src/pty.h \
601         src/pty.c \
602         src/font.h \
603         src/font.c \
604         src/font_8x16.c \
605         src/font_pango.c
606 wlterm_CPPFLAGS = \
607         $(AM_CPPFLAGS) \
608         $(WAYLAND_CFLAGS) \
609         $(PANGO_CFLAGS) \
610         $(XKBCOMMON_CFLAGS)
611 wlterm_LDADD = \
612         $(WAYLAND_LIBS) \
613         $(PANGO_LIBS) \
614         $(XKBCOMMON_LIBS) \
615         libeloop.la \
616         libtsm.la \
617         -lpthread
618
619 #
620 # Tests
621 #
622
623 test_sources = \
624         src/log.h \
625         src/log.c \
626         src/conf.h \
627         src/conf.c \
628         tests/test_include.h
629 test_cflags = \
630         $(XKBCOMMON_CFLAGS)
631 test_libs = \
632         $(XKBCOMMON_LIBS) \
633         libeloop.la
634
635 test_output_SOURCES = \
636         $(test_sources) \
637         tests/test_output.c
638 test_output_CPPFLAGS = \
639         $(AM_CPPFLAGS) \
640         $(test_cflags)
641 test_output_LDADD = \
642         $(test_libs) \
643         libuterm.la
644
645 test_vt_SOURCES = \
646         $(test_sources) \
647         tests/test_vt.c
648 test_vt_CPPFLAGS = \
649         $(AM_CPPFLAGS) \
650         $(test_cflags)
651 test_vt_LDADD = \
652         $(test_libs) \
653         libuterm.la
654
655 test_input_SOURCES = \
656         $(test_sources) \
657         tests/test_input.c
658 test_input_CPPFLAGS = \
659         $(AM_CPPFLAGS) \
660         $(test_cflags)
661 test_input_LDADD = \
662         $(test_libs) \
663         libuterm.la
664
665 test_key_SOURCES = \
666         $(test_sources) \
667         tests/test_key.c
668 test_key_CPPFLAGS = \
669         $(AM_CPPFLAGS) \
670         $(test_cflags)
671 test_key_LDADD = \
672         $(test_libs)
673
674 #
675 # Manpages
676 #
677
678 man_MANS =
679 EXTRA_DIST += ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,$(MANPAGES)}}}}
680 CLEANFILES += $(MANPAGES) $(MANPAGES_ALIASES) .man_fixup
681
682 if BUILD_HAVE_XSLTPROC
683 if BUILD_HAVE_MANPAGES_STYLESHEET
684
685 man_MANS += $(MANPAGES) $(MANPAGES_ALIASES)
686
687 XSLTPROC_FLAGS = \
688         --stringparam man.authors.section.enabled 0 \
689         --stringparam man.copyright.section.enabled 0 \
690         --stringparam funcsynopsis.style ansi \
691         --stringparam man.output.quietly 1 \
692         --nonet
693
694 XSLTPROC_PROCESS_MAN = \
695         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
696         $(XSLTPROC) -o "$@" $(XSLTPROC_FLAGS) $(BUILD_MANPAGES_STYLESHEET) "$<" && \
697         touch .man_fixup
698
699 # Force .man_fixup if $(MANPAGES) are not built
700 .man_fixup: | $(MANPAGES)
701         @touch .man_fixup
702
703 $(MANPAGES_ALIASES): $(MANPAGES) .man_fixup
704         $(AM_V_GEN)if test -n "$@" ; then $(SED) -i -e 's/^\.so \([a-z_]\+\)\.\([0-9]\)$$/\.so man\2\/\1\.\2/' "$@" ; fi
705
706 docs/man/%.1: docs/man/%.xml
707         $(XSLTPROC_PROCESS_MAN)
708
709 docs/man/%.3: docs/man/%.xml
710         $(XSLTPROC_PROCESS_MAN)
711
712 docs/man/%.5: docs/man/%.xml
713         $(XSLTPROC_PROCESS_MAN)
714
715 docs/man/%.7: docs/man/%.xml
716         $(XSLTPROC_PROCESS_MAN)
717
718 endif # BUILD_HAVE_MANPAGES_STYLESHEET
719 endif # BUILD_HAVE_XSLTPROC
720
721 #
722 # Phony targets
723 #
724
725 .PHONY: $(TPHONY)