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