1fe2ac8d7Smrg#
29027f4a0Smrg#  Copyright 2005  Red Hat, Inc.
3fe2ac8d7Smrg#
49027f4a0Smrg#  Permission to use, copy, modify, distribute, and sell this software and its
59027f4a0Smrg#  documentation for any purpose is hereby granted without fee, provided that
69027f4a0Smrg#  the above copyright notice appear in all copies and that both that
79027f4a0Smrg#  copyright notice and this permission notice appear in supporting
89027f4a0Smrg#  documentation, and that the name of Red Hat not be used in
99027f4a0Smrg#  advertising or publicity pertaining to distribution of the software without
109027f4a0Smrg#  specific, written prior permission.  Red Hat makes no
119027f4a0Smrg#  representations about the suitability of this software for any purpose.  It
129027f4a0Smrg#  is provided "as is" without express or implied warranty.
13fe2ac8d7Smrg#
149027f4a0Smrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
159027f4a0Smrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
169027f4a0Smrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
179027f4a0Smrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
189027f4a0Smrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
199027f4a0Smrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
209027f4a0Smrg#  PERFORMANCE OF THIS SOFTWARE.
219027f4a0Smrg
22fe2ac8d7SmrgSUBDIRS = man
239027f4a0Smrgbin_PROGRAMS = xfontsel
249027f4a0Smrg
250d6f290aSmrgAM_CPPFLAGS = -D_CONST_X_STRING
263a72f200SmrgAM_CFLAGS = $(XFONTSEL_CFLAGS) $(CWARNFLAGS)
279027f4a0Smrgxfontsel_LDADD = $(XFONTSEL_LIBS)
289027f4a0Smrg
299027f4a0Smrgxfontsel_SOURCES =	\
309027f4a0Smrg        ULabel.c \
319027f4a0Smrg        ULabel.h \
329027f4a0Smrg        ULabelP.h \
339027f4a0Smrg        xfontsel.c
349027f4a0Smrg
353a72f200Smrg# App default files
363a72f200SmrgDISTCHECK_CONFIGURE_FLAGS = --with-appdefaultdir=\$${datadir}/X11/app-defaults
379027f4a0Smrg
389027f4a0Smrgappdefaultdir = @appdefaultdir@
399027f4a0Smrg
403a72f200Smrgdist_appdefault_DATA = \
413a72f200Smrg        app-defaults/XFontSel
429027f4a0Smrg
433a72f200SmrgMAINTAINERCLEANFILES = ChangeLog INSTALL
449027f4a0Smrg
453a72f200Smrg.PHONY: ChangeLog INSTALL
469027f4a0Smrg
473a72f200SmrgINSTALL:
483a72f200Smrg	$(INSTALL_CMD)
499027f4a0Smrg
509027f4a0SmrgChangeLog:
513a72f200Smrg	$(CHANGELOG_CMD)
529027f4a0Smrg
533a72f200Smrgdist-hook: ChangeLog INSTALL
540d6f290aSmrg
550d6f290aSmrgEXTRA_DIST = README.md
56224bc9c7Smrg
57224bc9c7Smrgif USE_GETTEXT
58224bc9c7SmrgAM_CPPFLAGS = -DLOCALEDIR='"$(LOCALEDIR)"'
59224bc9c7Smrg
60224bc9c7Smrgnoinst_DATA = xfontsel.po
61224bc9c7Smrg
62224bc9c7Smrgxfontsel.po: $(xfontsel_SOURCES:%=$(srcdir)/%)
63224bc9c7Smrg	$(AM_V_GEN)xgettext -d xfontsel -c -n $(xfontsel_SOURCES:%=$(srcdir)/%)
64224bc9c7Smrg
65224bc9c7SmrgCLEANFILES = xfontsel.po
66224bc9c7Smrgendif
67