File: makefile.in

package info (click to toggle)
diffstat 1.43-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 612 kB
  • ctags: 151
  • sloc: sh: 2,873; ansic: 1,379; makefile: 130
file content (137 lines) | stat: -rw-r--r-- 3,036 bytes parent folder | download | duplicates (2)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# $Id: makefile.in,v 1.27 2005/04/10 12:58:43 tom Exp $
# Makefile-template for 'diffstat'

THIS		= diffstat

#### Start of system configuration section. ####

srcdir		= @srcdir@
VPATH		= @srcdir@

CC		= @CC@
LINK		= $(CC)
INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@

CFLAGS		= @CFLAGS@ @EXTRA_CFLAGS@
CPPFLAGS	= -I. -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@

LIBS		= @LIBS@
LDFLAGS		= @LDFLAGS@

o		= .@OBJEXT@
x		= @EXEEXT@

DESTDIR		= @DESTDIR@
prefix		= @prefix@
exec_prefix	= @exec_prefix@

bindir		= $(DESTDIR)@bindir@
mandir		= $(DESTDIR)@mandir@

#### End of system configuration section. ####

SHELL		= /bin/sh

man1dir		= $(mandir)/man1
manext		= 1

PROG		= $(THIS)$x

SRC =		CHANGES \
		README $(THIS).c $(THIS).1 \
		config_h.in install.sh mkdirs.sh \
		makefile.in configure.in aclocal.m4 \
		makefile.wnt

PORTFILES =	porting/getopt.c \
		porting/getopt.h \
		porting/system.h \
		porting/wildcard.c

TESTFILES =	testing/README \
		testing/run_test.sh \
		testing/case0[1-5]*

DISTFILES =	configure config.guess config.sub $(SRC)

.SUFFIXES: .c $o

.c$o:
@RULE_CC@
	@ECHO_CC@$(CC) -c $(CPPFLAGS) $(CFLAGS) $<

all :	$(PROG)

$(PROG) : diffstat$o
	@ECHO_LD@$(LINK) $(LDFLAGS) -o $@ diffstat$o $(LIBS)

install : all installdirs
	$(INSTALL_PROGRAM) $(PROG) $(bindir)/$(PROG)
	$(INSTALL_DATA) $(srcdir)/$(THIS).1 $(man1dir)/$(THIS).$(manext)

installdirs :
	$(SHELL) ${srcdir}/mkdirs.sh $(bindir) $(libdir) $(man1dir)

uninstall :
	rm -f $(bindir)/$(PROG) $(man1dir)/$(THIS).$(manext)

mostlyclean :
	rm -f *.o core *~ *.out *.err *.BAK *.atac

clean : mostlyclean
	rm -f $(PROG)

distclean : clean
	rm -f makefile config.log config.cache config.status config.h

realclean : distclean
	rm -f tags TAGS # don't remove configure!

check :	$(PROG)
	$(SHELL) -c 'PATH=`pwd`:$${PATH}; export PATH; \
	    $(SHELL) $(srcdir)/testing/run_test.sh $(srcdir)/testing/case*.pat'

lint :
	lint $(THIS).c

tags :
	ctags $(THIS).c $(HDRS)

TAGS :
	etags $(THIS).c $(HDRS)

dist:	makefile $(DISTFILES)
	# make a list of the files to distribute
	echo $(THIS)-`sed \
		-e '/"$$[A-Za-z]*: $(THIS)\.c.*$$"/!d' \
		-e 's/^.*$(THIS)[^ ]*[ ]*//' \
		-e 's/[ ].*$$//' \
		-e q $(srcdir)/$(THIS).c` > .fname
	rm -rf `cat .fname`
	# contents of top directory
	mkdir `cat .fname`
	for file in $(DISTFILES); do \
	  ln $(srcdir)/$$file `cat .fname` \
	    || { echo copying $$file instead; cp -p $$file `cat .fname`; }; \
	done
	# contents of top/porting directory
	mkdir `cat .fname`/porting
	for file in $(PORTFILES); do \
	  ln $(srcdir)/$$file `cat .fname`/porting \
	    || { echo copying $$file instead; cp -p $$file `cat .fname`/porting; }; \
	done
	# contents of top/testing directory
	mkdir `cat .fname`/testing
	for file in $(TESTFILES); do \
	  ln $(srcdir)/$$file `cat .fname`/testing \
	    || { echo copying $$file instead; cp -p $$file `cat .fname`/testing; }; \
	done
	# tar and cleanup
	tar -cf - `cat .fname` | gzip >`cat .fname`.tgz
	rm -rf `cat .fname` .fname

$(THIS).o :	config.h

$(SRC) :