File: makefile.in

package info (click to toggle)
diffstat 1.62-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,028 kB
  • sloc: sh: 3,129; ansic: 2,587; makefile: 170
file content (151 lines) | stat: -rw-r--r-- 3,376 bytes parent folder | download | duplicates (4)
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# $Id: makefile.in,v 1.35 2018/08/15 00:55:15 tom Exp $
# Makefile-template for 'diffstat'

THIS		= diffstat

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

srcdir		= @srcdir@
VPATH		= @srcdir@

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

datarootdir	= @datarootdir@
bindir		= @bindir@
mandir		= @mandir@

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

LINT		= @LINT@
LINTOPTS	= @LINT_OPTS@
CTAGS		= @CTAGS@
ETAGS		= @ETAGS@

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

LIBS		= @LIBS@
LDFLAGS		= @LDFLAGS@

o		= .@OBJEXT@
x		= @EXEEXT@

EXTRA_OBJS	= @EXTRA_OBJS@

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 \
		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 $(EXTRA_OBJS)
	@ECHO_LD@$(LINK) $(LDFLAGS) -o $@ diffstat$o $(EXTRA_OBJS) $(LIBS)

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

installdirs :
	mkdir -p $(BINDIR) $(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 man2html.tmp
	rm -f tags TAGS # don't remove configure!

realclean :: distclean

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

lint :
	$(LINT) $(CPPFLAGS) $(LINTOPTS) $(THIS).c

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

@MAKE_UPPER_TAGS@TAGS :
@MAKE_UPPER_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) :

getopt.o : $(srcdir)/porting/getopt.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(srcdir)/porting/getopt.c