File: Makefile.in

package info (click to toggle)
setserial 2.14-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 232 kB
  • ctags: 64
  • sloc: ansic: 608; makefile: 100; sh: 52
file content (71 lines) | stat: -rw-r--r-- 1,989 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
# setserial.mk - makefile for setserial - rick sladkey
# modified by Michael K. Johnson, johnsonm@stolaf.edu

srcdir = @srcdir@
VPATH = @srcdir@

VERSION = @RELEASE_VERSION@

CC = @CC@
RM = rm -f
CFLAGS = @CFLAGS@
DEFS = @DEFS@
TAR = tar

all: setserial setserial.cat

setserial: setserial.c
	$(CC) $(CFLAGS) $(DEFS) setserial.c -o setserial

setserial.cat: setserial.8
	nroff -man setserial.8 > setserial.cat

install: setserial
	install -s setserial /bin

clean:
	$(RM) setserial setserial.o setserial.cat *~

distclean: clean
	$(RM) config.status config.log config.cache MCONFIG Makefile \
		setserial.8

realclean: distclean
	$(RM) configure

SRCROOT = `echo setserial-$(VERSION) | sed -e 's/-WIP//' \
			-e 's/pre-//' -e 's/-PLUS//'`

$(srcdir)/.exclude-file:
	a=$(SRCROOT); \
	(cd $(srcdir)/.. ; find setserial \( -name \*~ -o -name \*.orig \
		-o -name CVS -o -name \*.rej \) -print) \
		| sed -e "s/setserial/$$a/" > $(srcdir)/.exclude-file
	echo "$(SRCROOT)/Makefile" >> $(srcdir)/.exclude-file
	echo "$(SRCROOT)/build" >> $(srcdir)/.exclude-file
	echo "$(SRCROOT)/rpm.log" >> $(srcdir)/.exclude-file
	echo "$(SRCROOT)/setserial" >> $(srcdir)/.exclude-file
	echo "$(SRCROOT)/setserial.cat" >> $(srcdir)/.exclude-file
	echo "$(SRCROOT)/setserial.o" >> $(srcdir)/.exclude-file
	echo "$(SRCROOT)/.exclude-file" >> $(srcdir)/.exclude-file
	echo $(SRCROOT)/e2fsprogs-$(VERSION).tar.gz \
		>> $(srcdir)/.exclude-file
	
source_tar_file: $(srcdir)/.exclude-file
	(cd $(srcdir)/..; a=$(SRCROOT); rm -f $$a ; ln -sf setserial $$a ; \
		$(TAR) -c -h -v -f - \
			-X $$a/.exclude-file $$a | \
		gzip -9 > setserial-$(VERSION).tar.gz)
	rm -f $(srcdir)/.exclude-file $(srcdir)/../setserial-$(VERSION)

${srcdir}/configure: configure.in # aclocal.m4
	cd ${srcdir} && autoconf

Makefile: Makefile.in config.status
	CONFIG_FILES=Makefile ./config.status

setserial.8: setserial.8.in config.status
	CONFIG_FILES=setserial.8 ./config.status
     
config.status: configure
	./config.status --recheck