source: trunk/third/enscript/states/Makefile.in @ 17629

Revision 17629, 14.7 KB checked in by ghudson, 22 years ago (diff)
Add DESTDIR support. (From Red Hat.)
Line 
1# Makefile.in generated automatically by automake 1.3 from Makefile.am
2
3# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4# This Makefile.in is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved.
7
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11# PARTICULAR PURPOSE.
12
13#
14# Makefile for states.
15# Copyright (c) 1997-1998 Markku Rossi
16#
17# Author: Markku Rossi <mtr@iki.fi>
18#
19
20#
21# This file is part of GNU enscript.
22#
23# This program is free software; you can redistribute it and/or modify
24# it under the terms of the GNU General Public License as published by
25# the Free Software Foundation; either version 2, or (at your option)
26# any later version.
27#
28# This program is distributed in the hope that it will be useful,
29# but WITHOUT ANY WARRANTY; without even the implied warranty of
30# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31# GNU General Public License for more details.
32#
33# You should have received a copy of the GNU General Public License
34# along with this program; see the file COPYING.  If not, write to
35# the Free Software Foundation, 59 Temple Place - Suite 330,
36# Boston, MA 02111-1307, USA.
37#
38
39
40SHELL = /bin/sh
41
42srcdir = @srcdir@
43top_srcdir = @top_srcdir@
44VPATH = @srcdir@
45prefix = @prefix@
46exec_prefix = @exec_prefix@
47
48bindir = @bindir@
49sbindir = @sbindir@
50libexecdir = @libexecdir@
51datadir = @datadir@
52sysconfdir = @sysconfdir@
53sharedstatedir = @sharedstatedir@
54localstatedir = @localstatedir@
55libdir = @libdir@
56infodir = @infodir@
57mandir = @mandir@
58includedir = @includedir@
59oldincludedir = /usr/include
60
61DISTDIR =
62
63pkgdatadir = $(datadir)/@PACKAGE@
64pkglibdir = $(libdir)/@PACKAGE@
65pkgincludedir = $(includedir)/@PACKAGE@
66
67top_builddir = ..
68
69ACLOCAL = @ACLOCAL@
70AUTOCONF = @AUTOCONF@
71AUTOMAKE = @AUTOMAKE@
72AUTOHEADER = @AUTOHEADER@
73
74INSTALL = @INSTALL@
75INSTALL_PROGRAM = @INSTALL_PROGRAM@
76INSTALL_DATA = @INSTALL_DATA@
77INSTALL_SCRIPT = @INSTALL_SCRIPT@
78transform = @program_transform_name@
79
80NORMAL_INSTALL = :
81PRE_INSTALL = :
82POST_INSTALL = :
83NORMAL_UNINSTALL = :
84PRE_UNINSTALL = :
85POST_UNINSTALL = :
86CATALOGS = @CATALOGS@
87CATOBJEXT = @CATOBJEXT@
88CC = @CC@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91DATADIRNAME = @DATADIRNAME@
92GENCAT = @GENCAT@
93GMOFILES = @GMOFILES@
94GMSGFMT = @GMSGFMT@
95GT_NO = @GT_NO@
96GT_YES = @GT_YES@
97INSTOBJEXT = @INSTOBJEXT@
98INTLDEPS = @INTLDEPS@
99INTLLIBS = @INTLLIBS@
100INTLOBJS = @INTLOBJS@
101LDFLAGS = @LDFLAGS@
102LEX = @LEX@
103LIBOBJS = @LIBOBJS@
104MAKEINFO = @MAKEINFO@
105MEDIA = @MEDIA@
106MKINSTALLDIRS = @MKINSTALLDIRS@
107MSGFMT = @MSGFMT@
108PACKAGE = @PACKAGE@
109PERL = @PERL@
110POFILES = @POFILES@
111POSUB = @POSUB@
112PSLEVEL = @PSLEVEL@
113RANLIB = @RANLIB@
114SPOOLER = @SPOOLER@
115U = @U@
116USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
117USE_NLS = @USE_NLS@
118VERSION = @VERSION@
119YACC = @YACC@
120l = @l@
121
122SUBDIRS = tests
123
124AUTOMAKE_OPTIONS =
125
126man_MANS = states.1
127
128bin_PROGRAMS = states
129states_SOURCES = main.c utils.c prims.c process.c gram.y lex.l
130
131LDADD = ../afmlib/libafm.a @INTLLIBS@ ../compat/libcompat.a @LEXLIB@
132states_DEPENDENCIES = @INTLLIBS@ ../compat/libcompat.a
133
134noinst_HEADERS = defs.h gram.h
135
136EXTRA_DIST = states.1.in TODO enscript.st over.in enscript.el
137
138localedir = $(prefix)/@DATADIRNAME@/locale
139
140bin_SCRIPTS = over
141
142YFLAGS = -d
143
144DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\" -I. -I$(srcdir) -I..
145INCLUDES = -I$(srcdir)/../compat -I$(srcdir)/../afmlib -I$(srcdir)/../intl -I../intl
146mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
147CONFIG_HEADER = ../config.h
148CONFIG_CLEAN_FILES =  states.1
149PROGRAMS =  $(bin_PROGRAMS)
150
151CPPFLAGS = @CPPFLAGS@
152LIBS = @LIBS@
153states_OBJECTS =  main.o utils.o prims.o process.o gram.o lex.o
154states_LDADD = $(LDADD)
155states_LDFLAGS =
156SCRIPTS =  $(bin_SCRIPTS)
157
158LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
159LEXLIB = @LEXLIB@
160COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
161LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
162man1dir = $(mandir)/man1
163MANS = $(man_MANS)
164
165NROFF = nroff
166HEADERS =  $(noinst_HEADERS)
167
168DIST_COMMON =  ChangeLog Makefile.am Makefile.in TODO gram.c lex.c \
169states.1.in
170
171
172DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
173
174TAR = gtar
175GZIP = --best
176SOURCES = $(states_SOURCES)
177OBJECTS = $(states_OBJECTS)
178
179all: all-recursive all-am
180
181.SUFFIXES:
182.SUFFIXES: .S .c .l .o .s .y
183$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
184        cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps states/Makefile
185
186Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
187        cd $(top_builddir) \
188          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
189
190states.1: $(top_builddir)/config.status states.1.in
191        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
192
193mostlyclean-binPROGRAMS:
194
195clean-binPROGRAMS:
196        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
197
198distclean-binPROGRAMS:
199
200maintainer-clean-binPROGRAMS:
201
202install-binPROGRAMS: $(bin_PROGRAMS)
203        @$(NORMAL_INSTALL)
204        $(mkinstalldirs) $(DESTDIR)$(bindir)
205        @list='$(bin_PROGRAMS)'; for p in $$list; do \
206          if test -f $$p; then \
207            echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
208             $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
209          else :; fi; \
210        done
211
212uninstall-binPROGRAMS:
213        @$(NORMAL_UNINSTALL)
214        list='$(bin_PROGRAMS)'; for p in $$list; do \
215          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
216        done
217
218.c.o:
219        $(COMPILE) -c $<
220
221.s.o:
222        $(COMPILE) -c $<
223
224.S.o:
225        $(COMPILE) -c $<
226
227mostlyclean-compile:
228        -rm -f *.o core *.core
229
230clean-compile:
231
232distclean-compile:
233        -rm -f *.tab.c
234
235maintainer-clean-compile:
236
237states: $(states_OBJECTS) $(states_DEPENDENCIES)
238        @rm -f states
239        $(LINK) $(states_LDFLAGS) $(states_OBJECTS) $(states_LDADD) $(LIBS)
240
241install-binSCRIPTS: $(bin_SCRIPTS)
242        @$(NORMAL_INSTALL)
243        $(mkinstalldirs) $(DESTDIR)$(bindir)
244        @list='$(bin_SCRIPTS)'; for p in $$list; do \
245          if test -f $$p; then \
246            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
247            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
248          else if test -f $(srcdir)/$$p; then \
249            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
250            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
251          else :; fi; fi; \
252        done
253
254uninstall-binSCRIPTS:
255        @$(NORMAL_UNINSTALL)
256        list='$(bin_SCRIPTS)'; for p in $$list; do \
257          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
258        done
259.y.c:
260        $(YACC) $(YFLAGS) $< && mv y.tab.c $*.c
261        if test -f y.tab.h; then \
262        if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
263        else :; fi
264gram.h: gram.c
265
266.l.c:
267        $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
268
269install-man1:
270        $(mkinstalldirs) $(DESTDIR)$(man1dir)
271        @list='$(man1_MANS)'; \
272        l2='$(man_MANS)'; for i in $$l2; do \
273          case "$$i" in \
274            *.1*) list="$$list $$i" ;; \
275          esac; \
276        done; \
277        for i in $$list; do \
278          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
279          else file=$$i; fi; \
280          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
281          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
282          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
283          echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
284          $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
285        done
286
287uninstall-man1:
288        @list='$(man1_MANS)'; \
289        l2='$(man_MANS)'; for i in $$l2; do \
290          case "$$i" in \
291            *.1*) list="$$list $$i" ;; \
292          esac; \
293        done; \
294        for i in $$list; do \
295          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
296          inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
297          inst=`echo $$inst | sed '$(transform)'`.$$ext; \
298          echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
299          rm -f $(DESTDIR)$(man1dir)/$$inst; \
300        done
301install-man: $(MANS)
302        @$(NORMAL_INSTALL)
303        $(MAKE) install-man1
304uninstall-man:
305        @$(NORMAL_UNINSTALL)
306        $(MAKE) uninstall-man1
307
308# This directory's subdirectories are mostly independent; you can cd
309# into them and run `make' without going through this Makefile.
310# To change the values of `make' variables: instead of editing Makefiles,
311# (1) if the variable is set in `config.status', edit `config.status'
312#     (which will cause the Makefiles to be regenerated when you run `make');
313# (2) otherwise, pass the desired values on the `make' command line.
314
315@SET_MAKE@
316
317all-recursive install-data-recursive install-exec-recursive \
318installdirs-recursive install-recursive uninstall-recursive  \
319check-recursive installcheck-recursive info-recursive dvi-recursive:
320        @set fnord $(MAKEFLAGS); amf=$$2; \
321        list='$(SUBDIRS)'; for subdir in $$list; do \
322          target=`echo $@ | sed s/-recursive//`; \
323          echo "Making $$target in $$subdir"; \
324          (cd $$subdir && $(MAKE) $$target) \
325           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
326        done && test -z "$$fail"
327
328mostlyclean-recursive clean-recursive distclean-recursive \
329maintainer-clean-recursive:
330        @set fnord $(MAKEFLAGS); amf=$$2; \
331        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
332          rev="$$subdir $$rev"; \
333        done; \
334        for subdir in $$rev; do \
335          target=`echo $@ | sed s/-recursive//`; \
336          echo "Making $$target in $$subdir"; \
337          (cd $$subdir && $(MAKE) $$target) \
338           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
339        done && test -z "$$fail"
340tags-recursive:
341        list='$(SUBDIRS)'; for subdir in $$list; do \
342          (cd $$subdir && $(MAKE) tags); \
343        done
344
345tags: TAGS
346
347ID: $(HEADERS) $(SOURCES) $(LISP)
348        here=`pwd` && cd $(srcdir) \
349          && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
350
351TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
352        tags=; \
353        here=`pwd`; \
354        list='$(SUBDIRS)'; for subdir in $$list; do \
355          test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
356        done; \
357        list='$(SOURCES) $(HEADERS)'; \
358        unique=`for i in $$list; do echo $$i; done | \
359          awk '    { files[$$0] = 1; } \
360               END { for (i in files) print i; }'`; \
361        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
362          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
363
364mostlyclean-tags:
365
366clean-tags:
367
368distclean-tags:
369        -rm -f TAGS ID
370
371maintainer-clean-tags:
372
373distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
374
375subdir = states
376
377distdir: $(DISTFILES)
378        @for file in $(DISTFILES); do \
379          d=$(srcdir); \
380          test -f $(distdir)/$$file \
381          || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
382          || cp -p $$d/$$file $(distdir)/$$file; \
383        done
384        for subdir in $(SUBDIRS); do \
385          test -d $(distdir)/$$subdir \
386          || mkdir $(distdir)/$$subdir \
387          || exit 1; \
388          chmod 777 $(distdir)/$$subdir; \
389          (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
390            || exit 1; \
391        done
392gram.o: gram.c defs.h ../config.h ../compat/regex.h ../compat/xalloc.h \
393        ../afmlib/strhash.h
394lex.o: lex.c defs.h ../config.h ../compat/regex.h ../compat/xalloc.h \
395        ../afmlib/strhash.h gram.h
396main.o: main.c defs.h ../config.h ../compat/regex.h ../compat/xalloc.h \
397        ../afmlib/strhash.h ../compat/getopt.h
398prims.o: prims.c defs.h ../config.h ../compat/regex.h ../compat/xalloc.h \
399        ../afmlib/strhash.h
400process.o: process.c defs.h ../config.h ../compat/regex.h \
401        ../compat/xalloc.h ../afmlib/strhash.h
402utils.o: utils.c defs.h ../config.h ../compat/regex.h ../compat/xalloc.h \
403        ../afmlib/strhash.h
404
405info: info-recursive
406dvi: dvi-recursive
407check: all-am
408        $(MAKE) check-recursive
409installcheck: installcheck-recursive
410all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(MANS) $(HEADERS)
411
412install-exec-am: install-binPROGRAMS install-binSCRIPTS
413
414install-data-am: install-man install-data-local
415
416uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-man uninstall-local
417
418install-exec: install-exec-recursive install-exec-am
419        @$(NORMAL_INSTALL)
420
421install-data: install-data-recursive install-data-am
422        @$(NORMAL_INSTALL)
423
424install: install-recursive install-exec-am install-data-am
425        @:
426
427uninstall: uninstall-recursive uninstall-am
428
429install-strip:
430        $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
431installdirs: installdirs-recursive
432        $(mkinstalldirs)  $(DATADIR)$(bindir) $(DATADIR)$(bindir) \
433                $(DESTDIR)$(mandir)/man1
434
435
436mostlyclean-generic:
437        -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
438
439clean-generic:
440        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
441
442distclean-generic:
443        -rm -f Makefile $(DISTCLEANFILES)
444        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
445        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
446
447maintainer-clean-generic:
448        -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
449        -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
450mostlyclean-am:  mostlyclean-binPROGRAMS mostlyclean-compile \
451                mostlyclean-tags mostlyclean-generic
452
453clean-am:  clean-binPROGRAMS clean-compile clean-tags clean-generic \
454                mostlyclean-am
455
456distclean-am:  distclean-binPROGRAMS distclean-compile distclean-tags \
457                distclean-generic clean-am
458
459maintainer-clean-am:  maintainer-clean-binPROGRAMS \
460                maintainer-clean-compile maintainer-clean-tags \
461                maintainer-clean-generic distclean-am
462
463mostlyclean:  mostlyclean-recursive mostlyclean-am
464
465clean:  clean-recursive clean-am
466
467distclean:  distclean-recursive distclean-am
468        -rm -f config.status
469
470maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
471        @echo "This command is intended for maintainers to use;"
472        @echo "it deletes files that may require special tools to rebuild."
473
474.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
475maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
476mostlyclean-compile distclean-compile clean-compile \
477maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS \
478install-man1 uninstall-man1 install-man uninstall-man \
479install-data-recursive uninstall-data-recursive install-exec-recursive \
480uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
481all-recursive check-recursive installcheck-recursive info-recursive \
482dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
483maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
484distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
485installcheck all-am install-exec-am install-data-am uninstall-am \
486install-exec install-data install uninstall all installdirs \
487mostlyclean-generic distclean-generic clean-generic \
488maintainer-clean-generic clean mostlyclean distclean maintainer-clean
489
490
491over: $(srcdir)/over.in
492        sed 's%@LIBRARYDIR@%$(prefix)/@DATADIRNAME@/enscript%g' \
493        $(srcdir)/over.in > over
494
495install-data-local: enscript.st
496        $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/enscript
497        $(INSTALL_DATA) $(srcdir)/enscript.st $(DESTDIR)$(datadir)/enscript/enscript.st
498
499uninstall-local:
500        rm -f $(datadir)/enscript/enscript.st
501
502# Tell versions [3.59,3.63) of GNU make to not export all variables.
503# Otherwise a system limit (for SysV at least) may be exceeded.
504.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.