File: Makefile.in

package info (click to toggle)
sident 3.6-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,960 kB
  • ctags: 719
  • sloc: sh: 8,131; ansic: 6,784; makefile: 231; perl: 147
file content (74 lines) | stat: -rw-r--r-- 2,265 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
# Makefile for the sident software
# $Id: Makefile.in 2428 2006-02-08 19:50:25Z rra $
#
# Please send bug fixes/bug reports to: rra@stanford.edu 

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@

@SET_MAKE@

# The directory name and tar file to use when building a release.
PACKAGE		= @PACKAGE_TARNAME@
VERSION		= @PACKAGE_VERSION@
TARDIR		= $(PACKAGE)-$(VERSION)
TARNAME		= $(TARDIR).tar

# DISTDIRS gets all directories from the MANIFEST, and DISTFILES gets all
# regular files.  Anything not listed in the MANIFEST will not be included in
# a distribution.  These are arguments to sed.
DISTDIRS	= -e 1,2d -e '/(Directory)/!d' -e 's/ .*//'
DISTFILES	= -e 1,2d -e '/(Directory)/d' -e 's/ .*//'

SUBDIRS = man requester @RESPONDER@

.PHONY: all clean depend install distclean dist check-manifest

all: Makefile
	@for subdir in $(SUBDIRS) ; do \
	    echo "making $@ in $$subdir"; \
	    ( cd $$subdir && $(MAKE) $@ ) || exit 1; \
	done

clean depend install: Makefile
	@for subdir in $(SUBDIRS) ; do \
	    echo "making $@ in $$subdir"; \
	    ( cd $$subdir && $(MAKE) $@ ) || exit 1; \
	done

distclean: clean
	@if [ -f perl/Makefile ]; then \
	    echo "making $@ in perl"; \
	    ( cd perl && $(MAKE) $@ ) || exit 1; \
	fi
	rm -f config.status config.cache config.log Makefile libtool
	rm -f config.h man/Makefile responder/Makefile requester/Makefile
	rm -f responder/kernel.c perl/Makefile.PL LIST.*
	rm -rf autom4te.cache $(TARDIR)

maintclean: distclean
	rm -f configure config.h.in config.h.in~
	rm -f $(TARNAME).gz $(TARNAME).gz.md5

dist:
	cd man && $(MAKE)
	rm -rf $(TARNAME).gz $(TARNAME).gz.md5 $(TARDIR)
	mkdir $(TARDIR)
	for d in `sed $(DISTDIRS) MANIFEST` ; do \
	    mkdir -p $(TARDIR)/$$d || exit 1 ; \
	done
	for f in `sed $(DISTFILES) MANIFEST` ; do \
	    cp $$f $(TARDIR)/$$f || exit 1 ; \
	done
	find $(TARDIR) -type f -print | xargs touch -t `date +%m%d%H%M.%S`
	tar cf $(TARNAME) $(TARDIR)
	gzip -9 $(TARNAME)
	md5sum $(TARNAME).gz > $(TARNAME).gz.md5

# Check the MANIFEST against the files present in the current tree, building a
# list with tools/mkmanifest and running diff between the lists.
check-manifest:
	sed -e 1,2d -e 's/ .*//' MANIFEST > LIST.manifest
	tools/mkmanifest > LIST.real
	diff -u LIST.manifest LIST.real