Makefile.am revision bd8ad950
1# 2# Copyright 2005 Red Hat, Inc. 3# 4# Permission to use, copy, modify, distribute, and sell this software 5# and its documentation for any purpose is hereby granted without fee, 6# provided that the above copyright notice appear in all copies and that 7# both that copyright notice and this permission notice appear in 8# supporting documentation, and that the name of Red Hat not be used in 9# advertising or publicity pertaining to distribution of the software 10# without specific, written prior permission. Red Hat makes no 11# representations about the suitability of this software for any 12# purpose. It is provided "as is" without express or implied warranty. 13# 14# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 16# NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 18# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 19# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20# PERFORMANCE OF THIS SOFTWARE. 21 22SUBDIRS = man 23bin_PROGRAMS = mkfontscale 24bin_SCRIPTS = mkfontdir 25 26CLEANFILES = $(bin_SCRIPTS) 27EXTRA_DIST = $(bin_SCRIPTS:=.in) 28DIR_SUBSTS = -e 's|@bindir[@]|$(bindir)|g' 29 30mkfontdir: mkfontdir.in 31 $(AM_V_GEN)$(SED) $(DIR_SUBSTS) < $(srcdir)/mkfontdir.in > $@ 32 33AM_CPPFLAGS = @MKFONTSCALE_CFLAGS@ @X11_CFLAGS@ -D_BSD_SOURCE 34AM_CFLAGS = $(CWARNFLAGS) 35mkfontscale_LDADD = @MKFONTSCALE_LIBS@ 36 37mkfontscale_SOURCES = \ 38 constlist.c \ 39 constlist.h \ 40 data.h \ 41 hash.c \ 42 hash.h \ 43 ident.c \ 44 ident.h \ 45 list.c \ 46 list.h \ 47 mkfontscale.c 48 49MAINTAINERCLEANFILES = ChangeLog INSTALL 50 51.PHONY: ChangeLog INSTALL 52 53INSTALL: 54 $(INSTALL_CMD) 55 56ChangeLog: 57 $(CHANGELOG_CMD) 58 59dist-hook: ChangeLog INSTALL 60 61if LINT 62ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 63 $(AM_CPPFLAGS) $(CPPFLAGS) 64 65lint: 66 $(LINT) $(ALL_LINT_FLAGS) $(mkfontscale_SOURCES) 67endif LINT 68 69EXTRA_DIST += README.md 70