File: Makefile.am

package info (click to toggle)
file 3.37-3.1.woody.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,176 kB
  • ctags: 506
  • sloc: ansic: 4,299; sh: 352; makefile: 127; perl: 61
file content (93 lines) | stat: -rw-r--r-- 3,628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# don't enforce GNU packaging standards
AUTOMAKE_OPTIONS = foreign no-dependencies

bin_PROGRAMS = file

bin_SCRIPTS = magic2mime

data_DATA = magic magic.mime magic.mgc

MAGIC	 = @datadir@/magic
CPPFLAGS = -DMAGIC='"/etc/magic:$(MAGIC)"'

if FSECT5
man_MAGIC = magic.5
else
man_MAGIC = magic.4
endif
fsect = @fsect@
man_MANS = file.1 $(man_MAGIC) magic2mime.1

file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
	compress.c is_tar.c readelf.c print.c \
	file.h names.h patchlevel.h readelf.h tar.h

EXTRA_DIST = LEGAL.NOTICE MAINT PORTING Makefile.std magic2mime \
	Localstuff Header $(magic_FRAGMENTS) file.man magic.man

CLEANFILES = $(man_MANS) magic magic.mgc

magic: Header $(magic_FRAGMENTS)
	cat $(srcdir)/Header > $@
	for frag in $(magic_FRAGMENTS); do \
	  if test -f $(srcdir)/$$frag; then \
	    f=$(srcdir)/$$frag; \
	  else \
	    f=$$frag; \
	  fi; \
          cat $$f; \
	done >> $@

magic.mgc: magic file
	./file -C -m magic

file.1:	Makefile file.man
	@rm -f $@
	sed -e s@__CSECTION__@1@g \
	    -e s@__FSECTION__@${fsect}@g \
	    -e s@__VERSION__@${VERSION}@g \
	    -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@

magic2mime.1: Makefile magic2mime.man
	@rm -f $@
	sed -e s@__CSECTION__@1@g \
	    -e s@__FSECTION__@${fsect}@g \
	    -e s@__VERSION__@${VERSION}@g \
	    -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic2mime.man > $@

magic.${fsect}: Makefile magic.man
	@rm -f $@
	sed -e s@__CSECTION__@1@g \
	    -e s@__FSECTION__@${fsect}@g \
	    -e s@__VERSION__@${VERSION}@g \
	    -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@

magic_FRAGMENTS = Magdir/adi Magdir/adventure Magdir/allegro Magdir/alliant \
    Magdir/alpha Magdir/amanda Magdir/amigaos Magdir/animation \
    Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix \
    Magdir/att3b Magdir/audio Magdir/blender Magdir/blit Magdir/bsdi \
    Magdir/c-lang Magdir/chi Magdir/cisco Magdir/claris Magdir/clipper \
    Magdir/commands Magdir/compress Magdir/console Magdir/convex \
    Magdir/database Magdir/diamond Magdir/diff Magdir/digital \
    Magdir/dump Magdir/elf Magdir/encore Magdir/epoc Magdir/filesystems \
    Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav \
    Magdir/gimp Magdir/gnu Magdir/grace Magdir/hp Magdir/ibm370 \
    Magdir/ibm6000 Magdir/iff Magdir/images Magdir/intel \
    Magdir/interleaf Magdir/island Magdir/ispell Magdir/java \
    Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex Magdir/lif \
    Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic \
    Magdir/mail.news Magdir/maple Magdir/mathematica Magdir/mcrypt \
    Magdir/mime Magdir/mips Magdir/mirage Magdir/mkid Magdir/mmdf Magdir/modem \
    Magdir/motorola Magdir/msdos Magdir/msvc Magdir/ncr Magdir/netbsd \
    Magdir/netscape Magdir/news Magdir/octave Magdir/olf Magdir/os2 \
    Magdir/os9 Magdir/osf1 Magdir/palm Magdir/pbm Magdir/pdf Magdir/pdp \
    Magdir/pgp Magdir/pkgadd Magdir/plus5 Magdir/printer Magdir/project \
    Magdir/psdbms Magdir/pyramid Magdir/python Magdir/riff Magdir/rpm \
    Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail Magdir/sequent \
    Magdir/sgml Magdir/sketch Magdir/sniffer Magdir/softquad Magdir/spectrum \
    Magdir/sun Magdir/teapot Magdir/terminfo Magdir/tex Magdir/ti-8x \
    Magdir/timezone Magdir/troff Magdir/typeset Magdir/unknown \
    Magdir/uuencode Magdir/varied.out Magdir/vax Magdir/vicar Magdir/visx \
    Magdir/vms Magdir/vmware Magdir/wordperfect Magdir/xdelta Magdir/xenix \
    Magdir/zilog Magdir/zyxel \
    Magdir/communications Magdir/misctools Magdir/wordprocessors Magdir/x11 Magdir/kimwitu Magdir/vorbis