1 diff -durN crossfire-0.95.8.orig/Makefile.in crossfire-0.95.8/Makefile.in
2 --- crossfire-0.95.8.orig/Makefile.in Wed Nov 29 07:30:13 2000
3 +++ crossfire-0.95.8/Makefile.in Mon Jan 29 10:10:36 2001
7 @if [ ! -d ${prefix} ]; then \
8 - $(MKDIR) -p ${prefix}; \
9 + $(MKDIR) -p $(DESTDIR)${prefix}; \
11 @for dir in $(SUBDIRS); \
13 diff -durN crossfire-0.95.8.orig/crossedit/Makefile.in crossfire-0.95.8/crossedit/Makefile.in
14 --- crossfire-0.95.8.orig/crossedit/Makefile.in Wed Nov 29 07:30:16 2000
15 +++ crossfire-0.95.8/crossedit/Makefile.in Mon Jan 29 10:10:36 2001
20 - @if [ ! -d ${bindir} ]; then \
21 - $(MKDIR) -p ${bindir}; \
22 + @if [ ! -d $(DESTDIR)${bindir} ]; then \
23 + $(MKDIR) -p $(DESTDIR)${bindir}; \
25 - $(INSTALL) crossedit ${bindir}/crossedit
26 + $(INSTALL) crossedit $(DESTDIR)${bindir}/crossedit
27 diff -durN crossfire-0.95.8.orig/doc/Makefile.in crossfire-0.95.8/doc/Makefile.in
28 --- crossfire-0.95.8.orig/doc/Makefile.in Wed Nov 29 07:30:16 2000
29 +++ crossfire-0.95.8/doc/Makefile.in Mon Jan 29 10:10:36 2001
34 - @if [ ! -d $(MAN1) ]; then \
35 - $(MKDIR) -p $(MAN1); \
36 + @if [ ! -d $(DESTDIR)$(MAN1) ]; then \
37 + $(MKDIR) -p $(DESTDIR)$(MAN1); \
39 - $(INSTALL) $(srcdir)/crossedit.man $(MAN1)/crossedit.$(MANSUFFIX)
40 - $(INSTALL) $(srcdir)/crossfire.man $(MAN1)/crossfire.$(MANSUFFIX)
41 + $(INSTALL) $(srcdir)/crossedit.man $(DESTDIR)$(MAN1)/crossedit.$(MANSUFFIX)
42 + $(INSTALL) $(srcdir)/crossfire.man $(DESTDIR)$(MAN1)/crossfire.$(MANSUFFIX)
43 diff -durN crossfire-0.95.8.orig/lib/Makefile.in crossfire-0.95.8/lib/Makefile.in
44 --- crossfire-0.95.8.orig/lib/Makefile.in Wed Nov 29 07:30:14 2000
45 +++ crossfire-0.95.8/lib/Makefile.in Mon Jan 29 10:10:36 2001
49 install:: archetypes bmaps.paths crossfire.xbm crossfire.xpm crossfire.png animations
50 - @if [ ! -d $(datadir) ]; then \
51 - $(MKDIR) -p $(datadir); \
52 + @if [ ! -d $(DESTDIR)$(datadir) ]; then \
53 + $(MKDIR) -p $(DESTDIR)$(datadir); \
55 - @if [ ! -d $(localdir) ]; then \
56 - $(MKDIR) -p $(localdir); \
57 + @if [ ! -d $(DESTDIR)$(localdir) ]; then \
58 + $(MKDIR) -p $(DESTDIR)$(localdir); \
61 - if [ ! -d $(datadir)/help ]; then \
62 + if [ ! -d $(DESTDIR)$(datadir)/help ]; then \
63 echo "Creating directory $(datadir)/help"; \
64 - $(MKDIR) -p $(datadir)/help; \
65 + $(MKDIR) -p $(DESTDIR)$(datadir)/help; \
67 @for i in $(FILES_HELP); do \
68 echo "Installing $$i"; \
69 - $(INSTALL) $(INSTALLFLAGS) $$i $(datadir)/help; \
70 + $(INSTALL) $(INSTALLFLAGS) $$i $(DESTDIR)$(datadir)/help; \
72 @for i in $(INSTALLFILES); do \
73 echo "Installing $$i"; \
74 - $(INSTALL) $(INSTALLFLAGS) $$i $(datadir); \
75 + $(INSTALL) $(INSTALLFLAGS) $$i $(DESTDIR)$(datadir); \
78 @if [ ! -f $(datadir)/settings ]; then \
79 - $(INSTALL) $(INSTALLFLAGS) settings $(datadir); \
80 + $(INSTALL) $(INSTALLFLAGS) settings $(DESTDIR)$(datadir); \
83 - touch $(localdir)/highscore
84 - touch $(localdir)/bookarch
85 - touch $(localdir)/temp.maps
86 + touch $(DESTDIR)$(localdir)/highscore
87 + touch $(DESTDIR)$(localdir)/bookarch
88 + touch $(DESTDIR)$(localdir)/temp.maps
90 @for i in players unique-items; do \
91 if [ ! -d $(localdir)/$$i ]; then \
92 echo "Creating directory $(localdir)/$$i"; \
93 - $(MKDIR) -p $(localdir)/$$i; \
94 + $(MKDIR) -p $(DESTDIR)$(localdir)/$$i; \
98 diff -durN crossfire-0.95.8.orig/random_maps/Makefile.in crossfire-0.95.8/random_maps/Makefile.in
99 --- crossfire-0.95.8.orig/random_maps/Makefile.in Wed Nov 29 07:30:14 2000
100 +++ crossfire-0.95.8/random_maps/Makefile.in Mon Jan 29 10:11:10 2001
101 @@ -118,10 +118,10 @@
102 @echo $(SRCS) > .patchlist
105 - @if [ ! -d ${bindir} ]; then \
106 - $(MKDIR) -p ${bindir}; \
107 + @if [ ! -d $(DESTDIR)${bindir} ]; then \
108 + $(MKDIR) -p $(DESTDIR)${bindir}; \
110 - $(INSTALL) random_map ${bindir}/random_map
111 + $(INSTALL) random_map $(DESTDIR)${bindir}/random_map
115 diff -durN crossfire-0.95.8.orig/server/Makefile.in crossfire-0.95.8/server/Makefile.in
116 --- crossfire-0.95.8.orig/server/Makefile.in Wed Nov 29 07:30:14 2000
117 +++ crossfire-0.95.8/server/Makefile.in Mon Jan 29 10:10:36 2001
119 @echo $(SRCS) > .patchlist
122 - @if [ ! -d ${bindir} ]; then \
123 - $(MKDIR) -p ${bindir}; \
124 + @if [ ! -d $(DESTDIR)${bindir} ]; then \
125 + $(MKDIR) -p $(DESTDIR)${bindir}; \
127 - $(INSTALL) crossfire ${bindir}/crossfire
128 + $(INSTALL) crossfire $(DESTDIR)${bindir}/crossfire
129 diff -durN crossfire-0.95.8.orig/utils/Makefile.in crossfire-0.95.8/utils/Makefile.in
130 --- crossfire-0.95.8.orig/utils/Makefile.in Wed Nov 29 07:30:16 2000
131 +++ crossfire-0.95.8/utils/Makefile.in Mon Jan 29 10:10:36 2001
133 $(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)
136 - @if [ ! -d $(bindir) ]; then \
137 - $(MKDIR) -p $(bindir); \
138 + @if [ ! -d $(DESTDIR)$(bindir) ]; then \
139 + $(MKDIR) -p $(DESTDIR)$(bindir); \
141 - rm -f $(bindir)/flushlocks
142 - sed s%xxxx%$(libdir)%g <flushlocks > $(bindir)/flushlocks
143 - chmod 755 $(bindir)/flushlocks
144 - rm -f $(bindir)/crossloop.pl
145 - sed s%BINDIR%$(bindir)%g <crossloop.pl >$(bindir)/crossloop.pl
146 - chmod 755 $(bindir)/crossloop.pl
147 - rm -f $(C_BINDIR)/crossloop
148 - sed s%BINDIR%$(bindir)%g <crossloop >$(bindir)/crossloop
149 - chmod 755 $(bindir)/crossloop
150 - $(INSTALL) $(INSTALLFLAGS) mktable.script $(bindir)/mktable
151 - $(INSTALL) $(INSTALLFLAGS) add_throw.perl $(bindir)/add_throw
152 + rm -f $(DESTDIR)$(bindir)/flushlocks
153 + sed s%xxxx%$(libdir)%g <flushlocks > $(DESTDIR)$(bindir)/flushlocks
154 + chmod 755 $(DESTDIR)$(bindir)/flushlocks
155 + rm -f $(DESTDIR)$(bindir)/crossloop.pl
156 + sed s%BINDIR%$(bindir)%g <crossloop.pl >$(DESTDIR)$(bindir)/crossloop.pl
157 + chmod 755 $(DESTDIR)$(bindir)/crossloop.pl
158 + rm -f $(DESTDIR)$(C_BINDIR)/crossloop
159 + sed s%BINDIR%$(bindir)%g <crossloop >$(DESTDIR)$(bindir)/crossloop
160 + chmod 755 $(DESTDIR)$(bindir)/crossloop
161 + $(INSTALL) $(INSTALLFLAGS) mktable.script $(DESTDIR)$(bindir)/mktable
162 + $(INSTALL) $(INSTALLFLAGS) add_throw.perl $(DESTDIR)$(bindir)/add_throw