1 # Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
3 # Copyright (C) 1994, 1995-8, 1999, 2001 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.
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
13 # don't enforce GNU packaging standards
19 top_srcdir = @top_srcdir@
22 exec_prefix = @exec_prefix@
26 libexecdir = @libexecdir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
39 pkgdatadir = $(datadir)/@PACKAGE@
40 pkglibdir = $(libdir)/@PACKAGE@
41 pkgincludedir = $(includedir)/@PACKAGE@
48 AUTOHEADER = @AUTOHEADER@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
52 INSTALL_DATA = @INSTALL_DATA@
53 INSTALL_SCRIPT = @INSTALL_SCRIPT@
54 transform = @program_transform_name@
68 AUTOMAKE_OPTIONS = foreign no-dependencies
72 data_DATA = magic magic.mime magic.mgc magic.mime.mgc
74 MAGIC = @datadir@/magic
75 CPPFLAGS = -DMAGIC='"$(MAGIC)"'
76 @FSECT5_TRUE@man_MAGIC = @FSECT5_TRUE@magic.5
77 @FSECT5_FALSE@man_MAGIC = @FSECT5_FALSE@magic.4
79 man_MANS = file.1 $(man_MAGIC)
81 file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
82 compress.c is_tar.c readelf.c print.c \
83 file.h names.h patchlevel.h readelf.h tar.h
86 EXTRA_DIST = LEGAL.NOTICE MAINT PORTING Makefile.std magic2mime \
87 Localstuff Header $(magic_FRAGMENTS) file.man magic.man
90 CLEANFILES = $(man_MANS) magic magic.mgc magic.mime.mgc
250 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
251 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
252 CONFIG_HEADER = config.h
254 PROGRAMS = $(bin_PROGRAMS)
257 DEFS = @DEFS@ -I. -I$(srcdir) -I.
260 file_OBJECTS = file.o apprentice.o fsmagic.o softmagic.o ascmagic.o \
261 compress.o is_tar.o readelf.o print.o
262 file_LDADD = $(LDADD)
266 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
268 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
269 man1dir = $(mandir)/man1
270 man4dir = $(mandir)/man4
271 man5dir = $(mandir)/man5
277 DIST_COMMON = README ./stamp-h.in Makefile.am Makefile.in acconfig.h \
278 acinclude.m4 aclocal.m4 config.h.in configure configure.in install-sh \
279 missing mkinstalldirs
282 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
286 SOURCES = $(file_SOURCES)
287 OBJECTS = $(file_OBJECTS)
291 .SUFFIXES: .S .c .o .s
292 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
293 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
295 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
297 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
299 $(ACLOCAL_M4): configure.in acinclude.m4
300 cd $(srcdir) && $(ACLOCAL)
302 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
303 $(SHELL) ./config.status --recheck
304 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
305 cd $(srcdir) && $(AUTOCONF)
308 @if test ! -f $@; then \
312 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
314 && CONFIG_FILES= CONFIG_HEADERS=config.h \
315 $(SHELL) ./config.status
316 @echo timestamp > stamp-h 2> /dev/null
317 $(srcdir)/config.h.in: $(srcdir)/stamp-h.in
318 @if test ! -f $@; then \
319 rm -f $(srcdir)/stamp-h.in; \
320 $(MAKE) $(srcdir)/stamp-h.in; \
322 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
323 cd $(top_srcdir) && $(AUTOHEADER)
324 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
333 maintainer-clean-hdr:
335 mostlyclean-binPROGRAMS:
338 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
340 distclean-binPROGRAMS:
342 maintainer-clean-binPROGRAMS:
344 install-binPROGRAMS: $(bin_PROGRAMS)
346 $(mkinstalldirs) $(DESTDIR)$(bindir)
347 @list='$(bin_PROGRAMS)'; for p in $$list; do \
348 if test -f $$p; then \
349 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
350 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
354 uninstall-binPROGRAMS:
356 list='$(bin_PROGRAMS)'; for p in $$list; do \
357 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
370 -rm -f *.o core *.core
377 maintainer-clean-compile:
379 file: $(file_OBJECTS) $(file_DEPENDENCIES)
381 $(LINK) $(file_LDFLAGS) $(file_OBJECTS) $(file_LDADD) $(LIBS)
384 $(mkinstalldirs) $(DESTDIR)$(man1dir)
385 @list='$(man1_MANS)'; \
386 l2='$(man_MANS)'; for i in $$l2; do \
388 *.1*) list="$$list $$i" ;; \
391 for i in $$list; do \
392 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
394 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
395 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
396 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
397 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
398 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
402 @list='$(man1_MANS)'; \
403 l2='$(man_MANS)'; for i in $$l2; do \
405 *.1*) list="$$list $$i" ;; \
408 for i in $$list; do \
409 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
410 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
411 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
412 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
413 rm -f $(DESTDIR)$(man1dir)/$$inst; \
417 $(mkinstalldirs) $(DESTDIR)$(man4dir)
418 @list='$(man4_MANS)'; \
419 l2='$(man_MANS)'; for i in $$l2; do \
421 *.4*) list="$$list $$i" ;; \
424 for i in $$list; do \
425 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
427 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
428 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
429 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
430 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man4dir)/$$inst"; \
431 $(INSTALL_DATA) $$file $(DESTDIR)$(man4dir)/$$inst; \
435 @list='$(man4_MANS)'; \
436 l2='$(man_MANS)'; for i in $$l2; do \
438 *.4*) list="$$list $$i" ;; \
441 for i in $$list; do \
442 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
443 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
444 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
445 echo " rm -f $(DESTDIR)$(man4dir)/$$inst"; \
446 rm -f $(DESTDIR)$(man4dir)/$$inst; \
450 $(mkinstalldirs) $(DESTDIR)$(man5dir)
451 @list='$(man5_MANS)'; \
452 l2='$(man_MANS)'; for i in $$l2; do \
454 *.5*) list="$$list $$i" ;; \
457 for i in $$list; do \
458 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
460 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
461 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
462 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
463 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man5dir)/$$inst"; \
464 $(INSTALL_DATA) $$file $(DESTDIR)$(man5dir)/$$inst; \
468 @list='$(man5_MANS)'; \
469 l2='$(man_MANS)'; for i in $$l2; do \
471 *.5*) list="$$list $$i" ;; \
474 for i in $$list; do \
475 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
476 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
477 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
478 echo " rm -f $(DESTDIR)$(man5dir)/$$inst"; \
479 rm -f $(DESTDIR)$(man5dir)/$$inst; \
483 $(MAKE) $(AM_MAKEFLAGS) install-man1 install-man4 install-man5
486 $(MAKE) $(AM_MAKEFLAGS) uninstall-man1 uninstall-man4 uninstall-man5
488 install-dataDATA: $(data_DATA)
490 $(mkinstalldirs) $(DESTDIR)$(datadir)
491 @list='$(data_DATA)'; for p in $$list; do \
492 if test -f $(srcdir)/$$p; then \
493 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(datadir)/$$p"; \
494 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(datadir)/$$p; \
495 else if test -f $$p; then \
496 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(datadir)/$$p"; \
497 $(INSTALL_DATA) $$p $(DESTDIR)$(datadir)/$$p; \
503 list='$(data_DATA)'; for p in $$list; do \
504 rm -f $(DESTDIR)$(datadir)/$$p; \
509 ID: $(HEADERS) $(SOURCES) $(LISP)
510 list='$(SOURCES) $(HEADERS)'; \
511 unique=`for i in $$list; do echo $$i; done | \
512 awk ' { files[$$0] = 1; } \
513 END { for (i in files) print i; }'`; \
514 here=`pwd` && cd $(srcdir) \
515 && mkid -f$$here/ID $$unique $(LISP)
517 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
520 list='$(SOURCES) $(HEADERS)'; \
521 unique=`for i in $$list; do echo $$i; done | \
522 awk ' { files[$$0] = 1; } \
523 END { for (i in files) print i; }'`; \
524 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
525 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
534 maintainer-clean-tags:
536 distdir = $(PACKAGE)-$(VERSION)
537 top_distdir = $(distdir)
539 # This target untars the dist file and tries a VPATH configuration. Then
540 # it guarantees that the distribution is self-contained by making another
544 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
545 mkdir $(distdir)/=build
546 mkdir $(distdir)/=inst
547 dc_install_base=`cd $(distdir)/=inst && pwd`; \
548 cd $(distdir)/=build \
549 && ../configure --srcdir=.. --prefix=$$dc_install_base \
550 && $(MAKE) $(AM_MAKEFLAGS) \
551 && $(MAKE) $(AM_MAKEFLAGS) dvi \
552 && $(MAKE) $(AM_MAKEFLAGS) check \
553 && $(MAKE) $(AM_MAKEFLAGS) install \
554 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
555 && $(MAKE) $(AM_MAKEFLAGS) dist
557 @banner="$(distdir).tar.gz is ready for distribution"; \
558 dashes=`echo "$$banner" | sed s/./=/g`; \
563 -chmod -R a+r $(distdir)
564 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
567 -chmod -R a+r $(distdir)
568 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
570 distdir: $(DISTFILES)
573 -chmod 777 $(distdir)
574 $(mkinstalldirs) $(distdir)/Magdir
575 @for file in $(DISTFILES); do \
577 if test -d $$d/$$file; then \
578 cp -pr $$d/$$file $(distdir)/$$file; \
580 test -f $(distdir)/$$file \
581 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
582 || cp -p $$d/$$file $(distdir)/$$file || :; \
592 installcheck: installcheck-am
593 all-recursive-am: config.h
594 $(MAKE) $(AM_MAKEFLAGS) all-recursive
596 install-exec-am: install-binPROGRAMS
597 install-exec: install-exec-am
599 install-data-am: install-man install-dataDATA
600 install-data: install-data-am
603 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
605 uninstall-am: uninstall-binPROGRAMS uninstall-man uninstall-dataDATA
606 uninstall: uninstall-am
607 all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) config.h
610 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
612 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 \
613 $(DESTDIR)$(mandir)/man4 $(DESTDIR)$(mandir)/man5 \
620 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
623 -rm -f Makefile $(CONFIG_CLEAN_FILES)
624 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
626 maintainer-clean-generic:
627 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
628 mostlyclean-compile mostlyclean-tags \
631 mostlyclean: mostlyclean-am
633 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \
634 clean-generic mostlyclean-am
638 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
639 distclean-tags distclean-generic clean-am
641 distclean: distclean-am
644 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
645 maintainer-clean-compile maintainer-clean-tags \
646 maintainer-clean-generic distclean-am
647 @echo "This command is intended for maintainers to use;"
648 @echo "it deletes files that may require special tools to rebuild."
650 maintainer-clean: maintainer-clean-am
653 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
654 mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
655 maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
656 mostlyclean-compile distclean-compile clean-compile \
657 maintainer-clean-compile install-man1 uninstall-man1 install-man4 \
658 uninstall-man4 install-man5 uninstall-man5 install-man uninstall-man \
659 uninstall-dataDATA install-dataDATA tags mostlyclean-tags \
660 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
661 dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
662 install-exec-am install-exec install-data-am install-data install-am \
663 install uninstall-am uninstall all-redirect all-am all installdirs \
664 mostlyclean-generic distclean-generic clean-generic \
665 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
668 magic: Header Localstuff $(magic_FRAGMENTS)
669 cat $(srcdir)/Header $(srcdir)/Localstuff > $@
670 for frag in $(magic_FRAGMENTS); do \
671 if test -f $(srcdir)/$$frag; then \
672 f=$(srcdir)/$$frag; \
679 magic.mgc: magic file
682 magic.mime.mgc: magic.mime file
683 ./file -C -m $(srcdir)/magic.mime
685 file.1: Makefile file.man
687 sed -e s@__CSECTION__@1@g \
688 -e s@__FSECTION__@${fsect}@g \
689 -e s@__VERSION__@${VERSION}@g \
690 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
692 magic.${fsect}: Makefile magic.man
694 sed -e s@__CSECTION__@1@g \
695 -e s@__FSECTION__@${fsect}@g \
696 -e s@__VERSION__@${VERSION}@g \
697 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
699 # Tell versions [3.59,3.63) of GNU make to not export all variables.
700 # Otherwise a system limit (for SysV at least) may be exceeded.