File: makefile.in

package info (click to toggle)
bcpp 0.0.20050725-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 828 kB
  • sloc: cpp: 4,410; sh: 2,871; makefile: 185
file content (90 lines) | stat: -rw-r--r-- 2,354 bytes parent folder | download | duplicates (3)
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
# $Id: makefile.in,v 1.3 2002/11/23 17:29:32 tom Exp $
# top-level makefile-template for 'bcpp'

THIS		= bcpp

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

srcdir		= @srcdir@
VPATH		= @srcdir@

INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@

prefix		= @prefix@
exec_prefix	= @exec_prefix@

bindir		= $(DESTDIR)@bindir@
mandir		= $(DESTDIR)@mandir@/man1
manext		= 1

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

SHELL		= /bin/sh

DISTFILES = configure $(SRC)

all:
	cd code && $(MAKE) $@

install: all installdirs
	cd code && $(MAKE) $@
	$(INSTALL_PROGRAM) code/$(THIS) $(bindir)/$(THIS)
	$(INSTALL_DATA) $(srcdir)/txtdocs/$(THIS).1 $(mandir)/$(THIS).$(manext)

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

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

mostlyclean:
	cd code && $(MAKE) $@
	rm -f *.o core *~ *.out *.BAK *.atac

clean: mostlyclean
	cd code && $(MAKE) $@
	rm -f $(THIS)

distclean: clean
	cd code && $(MAKE) $@
	rm -f makefile code/makefile code/autoconf.h
	rm -f config.log config.cache config.status

realclean: distclean
	cd code && $(MAKE) $@

check:
	cd code && $(MAKE) $@

RELEASE	= `cat $(srcdir)/VERSION`
RELDIR	= echo "$(THIS)-`sed -e 's/[^0-9]//g' $(srcdir)/VERSION`"

# I keep my sources in RCS, and assign a symbolic release to the current patch
# level.  The 'manifest' script knows how to build a list of files for a given
# revision.
MANIFEST: $(srcdir)/VERSION
	manifest -r$(RELEASE)

dist: MANIFEST
	- rm -f .fname .files
	$(RELDIR) >.fname
	cat MANIFEST | grep ' ' | egrep -v ' subdirectory$$' | sed -e 's/\ .*//' | uniq >.files
	rm -rf `cat .fname`
	TOP=`cat .fname`; mkdir $$TOP `cat .files | grep / | sed -e 's@/.*@@' | sed -e s@\^@$$TOP/@ | uniq`
	for file in `cat .files`; do \
	  ln $(srcdir)/$$file `cat .fname`/$$file \
	    || { echo copying $$file instead; cp $$file `cat .fname`/$$file; }; \
	done
	tar -cf - `cat .fname` | gzip >`cat .fname`.tgz
	rm -rf `cat .fname` .fname .files

# Some of the output will be uuencoded because the test scripts include
# <CR><LF> terminated ".bat" files for MS-DOS.
dist-shar: MANIFEST
	- rm -f .fname .files
	$(RELDIR) >.fname
	cat MANIFEST | grep ' ' | egrep -v ' subdirectory$$' | sed -e 's/\ .*//' | uniq >.files
	shar -M -n`cat .fname` -opart -l50 `cat .files`
	- rm -f .fname .files