tizen 2.3.1 release
[framework/uifw/xorg/app/x11-apps.git] / xvidtune / Makefile.am
1 # $Id$
2
3 #  Copyright 2005  Red Hat, Inc.
4
5 #  Permission to use, copy, modify, distribute, and sell this software and its
6 #  documentation for any purpose is hereby granted without fee, provided that
7 #  the above copyright notice appear in all copies and that both that
8 #  copyright notice and this permission notice appear in supporting
9 #  documentation, and that the name of Red Hat not be used in
10 #  advertising or publicity pertaining to distribution of the software without
11 #  specific, written prior permission.  Red Hat makes no
12 #  representations about the suitability of this software for any purpose.  It
13 #  is provided "as is" without express or implied warranty.
14
15 #  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 #  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19 #  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20 #  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 #  PERFORMANCE OF THIS SOFTWARE.
22
23 bin_PROGRAMS = xvidtune
24
25 AM_CFLAGS = $(CWARNFLAGS) $(XVIDTUNE_CFLAGS) -fPIE
26 AM_LDFLAGS = $(XVIDTUNE_LDFLAGS) -pie
27
28 xvidtune_LDADD = $(XVIDTUNE_LIBS)
29
30 xvidtune_SOURCES =      \
31         xvidtune.c
32
33 # Man page
34
35 appmandir = $(APP_MAN_DIR)
36 appman_PRE = xvidtune.man
37 appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
38
39 SED = sed
40
41 # Strings to replace in man pages
42 XORGRELSTRING = @PACKAGE_STRING@
43   XORGMANNAME = X Version 11
44
45 MAN_SUBSTS = \
46         -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
47         -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
48         -e 's|__xservername__|Xorg|g' \
49         -e 's|__xconfigfile__|xorg.conf|g' \
50         -e 's|__projectroot__|$(prefix)|g' \
51         -e 's|__apploaddir__|$(appdefaultdir)|' \
52         -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
53         -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
54         -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
55         -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
56         -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
57
58 SUFFIXES = .$(APP_MAN_SUFFIX) .man
59
60 .man.$(APP_MAN_SUFFIX):
61         $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
62
63 # App default files
64 DISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
65
66 appdefaultdir = @appdefaultdir@
67
68 dist_appdefault_DATA = app-defaults/Xvidtune
69
70 EXTRA_DIST = $(appman_PRE)
71
72 MAINTAINERCLEANFILES = ChangeLog INSTALL
73 CLEANFILES = Xvidtune $(appman_DATA)
74
75
76
77 .PHONY: ChangeLog INSTALL
78
79 INSTALL:
80         $(INSTALL_CMD)
81
82 ChangeLog:
83         $(CHANGELOG_CMD)
84
85 dist-hook: ChangeLog INSTALL