File: Makefile.in

package info (click to toggle)
roleplaying 2.0-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 16,620 kB
  • ctags: 1,039
  • sloc: tcl: 7,155; cpp: 2,709; ansic: 2,227; makefile: 559; sh: 330; csh: 3
file content (126 lines) | stat: -rw-r--r-- 4,398 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
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
#* 
#* ------------------------------------------------------------------
#* Role PlayingDB V2.0 by Deepwoods Software
#* ------------------------------------------------------------------
#* Makefile.in - Makefile input
#* Created by Robert Heller on Tue Jul 13 18:32:14 1999
#* ------------------------------------------------------------------
#* Modification History: 
#* $Log$
#* ------------------------------------------------------------------
#* Contents:
#* ------------------------------------------------------------------
#*  
#*     Role Playing DB -- A database package that creates and maintains
#* 		       a database of RPG characters, monsters, treasures,
#* 		       spells, and playing environments.
#* 
#*     Copyright (C) 1995,1998,1999  Robert Heller D/B/A Deepwoods Software
#* 			51 Locke Hill Road
#* 			Wendell, MA 01379-9728
#* 
#*     This program is free software; you can redistribute it and/or modify
#*     it under the terms of the GNU General Public License as published by
#*     the Free Software Foundation; either version 2 of the License, or
#*     (at your option) any later version.
#* 
#*     This program is distributed in the hope that it will be useful,
#*     but WITHOUT ANY WARRANTY; without even the implied warranty of
#*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#*     GNU General Public License for more details.
#* 
#*     You should have received a copy of the GNU General Public License
#*     along with this program; if not, write to the Free Software
#*     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#* 
#*  
#* 
srcdir = @srcdir@

prefix     = @prefix@
exec_prefix= @exec_prefix@
RPG_LIB = $(exec_prefix)/lib/RolePlaying-2.0/Scripts
BIN_DIR        = $(exec_prefix)/bin
LIB_DIR        = $(exec_prefix)/lib
LIB_DIRX       = $(exec_prefix)/lib/RolePlaying-2.0
INCLUDE_DIR    = $(prefix)/include/RolePlaying-2.0
HELP_DIR       = $(prefix)/lib/RolePlaying-2.0/Help
# Modified for Debian
DOC_DIR        = $(prefix)/share/doc/roleplaying
#DOC_DIR        = $(prefix)/doc/RolePlaying-2.0
INSTALL	       = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA   = @INSTALL_DATA@
WISH	       = @TCL_EXEC_PREFIX@/bin/wish

SUBDIRS = C++ Doc Scripts Help
DOCSUBDIRS = Doc

all: 
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i all; done
	sed -e "s%@LIB_DIR@%$(LIB_DIR)%g" \
	    -e "s%@LIB_DIRX@%$(LIB_DIRX)%g" \
	    -e "s%@RPG_LIB@%$(RPG_LIB)%g" \
	    -e "s%@WISH@%$(WISH)%g" <RPG.in >RPG

clean: 
	-rm -f Lib/*.so RPG
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done

distclean: clean
	-rm -f config.*
	-find . -name "Makefile" -exec rm -f \{\} \;

doubleOnSingle:
	set -e; for i in $(DOCSUBDIRS); do $(MAKE) -C $$i doubleOnSingle; done

PDF:
	set -e; for i in $(DOCSUBDIRS); do $(MAKE) -C $$i PDF; done

install:
	@for i in $(LIB_DIR) $(LIB_DIRX) $(BIN_DIR) $(prefix)/include $(prefix)/doc $(prefix)/lib/RolePlaying-2.0 $(RPG_LIB) $(INCLUDE_DIR) $(HELP_DIR) $(DOC_DIR);\
	do \
	  if [ ! -d $$i ] ; then \
		mkdir $$i; \
		echo "Making directory $$i"; \
		chmod 755 $$i;\
		else true; \
	  fi; \
	  done;
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
	$(INSTALL_DATA) Lib/librpg.so $(LIB_DIR)
	$(INSTALL_DATA) Lib/rpg.so $(LIB_DIRX)
	$(INSTALL_DATA) Lib/pkgIndex.tcl $(LIB_DIRX)
	$(INSTALL_PROGRAM) -m 755 RPG $(BIN_DIR)
	

starballfiles .starballfiles: 
	echo configure >.starballfiles
	echo configure.in >>.starballfiles
	echo Makefile.in >>.starballfiles
	echo INSTALL >>.starballfiles
	echo README >>.starballfiles
	echo COPYING >>.starballfiles
	echo HISTORY >>.starballfiles
	echo RPG.in >>.starballfiles
	set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i TDIR=$$i tarballfiles;\
		cat $$i/.tarballfiles >>.starballfiles; done

btarballfiles: all starballfiles
	cp .starballfiles .btarballfiles
	echo Lib/librpg.so >>.btarballfiles
	echo Lib/rpg.so >>.btarballfiles
	echo Lib/pkgIndex.tcl >>.btarballfiles


RolePlaying2.0.tar.gz Starball: starballfiles  configure configure.in \
	INSTALL README HISTORY COPYING RPG.in Makefile.in
	tar czvf RolePlaying2.0.tar.gz `cat .starballfiles`

RolePlaying2.0.@SYSTEMVERSION@.tar.gz Btarball: btarballfiles \
	configure configure.in INSTALL README HISTORY COPYING \
	RPG.in Makefile.in
	ln -sf . RolePlaying2.0
	tar czvf RolePlaying2.0.@SYSTEMVERSION@.tar.gz `cat .btarballfiles|sed 's/^/RolePlaying2.0\//g'`
	rm RolePlaying2.0