aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Seward <jseward@acm.org>2005-02-15 22:13:13 +0100
committerJulian Seward <jseward@acm.org>2005-02-15 22:13:13 +0100
commit4d540bfc95a4b0eefc1d1f388ec33534aaeb3a2f (patch)
tree3b7e9c650b4c61d114e1716c4698e40d5c8d7ef7 /Makefile
parent099d844292f60f9d58914da29e5773204dc55e7a (diff)
downloadbzip2-4d540bfc95a4b0eefc1d1f388ec33534aaeb3a2f.tar.gz
bzip2-4d540bfc95a4b0eefc1d1f388ec33534aaeb3a2f.tar.bz2
bzip2-4d540bfc95a4b0eefc1d1f388ec33534aaeb3a2f.zip
bzip2-1.0.3bzip2-1.0.3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile51
1 files changed, 32 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 8305235..eea329a 100644
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,8 @@ AR=ar
7RANLIB=ranlib 7RANLIB=ranlib
8LDFLAGS= 8LDFLAGS=
9 9
10# Suitably paranoid flags to avoid bugs in gcc-2.7
11BIGFILES=-D_FILE_OFFSET_BITS=64 10BIGFILES=-D_FILE_OFFSET_BITS=64
12CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES) 11CFLAGS=-Wall -Winline -O -g $(BIGFILES)
13 12
14# Where you want it installed when you do 'make install' 13# Where you want it installed when you do 'make install'
15PREFIX=/usr 14PREFIX=/usr
@@ -96,7 +95,6 @@ install: bzip2 bzip2recover
96 echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1 95 echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
97 echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 96 echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
98 97
99distclean: clean
100clean: 98clean:
101 rm -f *.o libbz2.a bzip2 bzip2recover \ 99 rm -f *.o libbz2.a bzip2 bzip2recover \
102 sample1.rb2 sample2.rb2 sample3.rb2 \ 100 sample1.rb2 sample2.rb2 sample3.rb2 \
@@ -122,8 +120,12 @@ bzip2.o: bzip2.c
122bzip2recover.o: bzip2recover.c 120bzip2recover.o: bzip2recover.c
123 $(CC) $(CFLAGS) -c bzip2recover.c 121 $(CC) $(CFLAGS) -c bzip2recover.c
124 122
125DISTNAME=bzip2-1.0.2 123
126tarfile: 124distclean: clean
125 rm -f manual.ps manual.html manual.pdf
126
127DISTNAME=bzip2-1.0.3
128dist: check manual
127 rm -f $(DISTNAME) 129 rm -f $(DISTNAME)
128 ln -sf . $(DISTNAME) 130 ln -sf . $(DISTNAME)
129 tar cvf $(DISTNAME).tar \ 131 tar cvf $(DISTNAME).tar \
@@ -139,9 +141,6 @@ tarfile:
139 $(DISTNAME)/bzlib.h \ 141 $(DISTNAME)/bzlib.h \
140 $(DISTNAME)/bzlib_private.h \ 142 $(DISTNAME)/bzlib_private.h \
141 $(DISTNAME)/Makefile \ 143 $(DISTNAME)/Makefile \
142 $(DISTNAME)/manual.texi \
143 $(DISTNAME)/manual.ps \
144 $(DISTNAME)/manual.pdf \
145 $(DISTNAME)/LICENSE \ 144 $(DISTNAME)/LICENSE \
146 $(DISTNAME)/bzip2.1 \ 145 $(DISTNAME)/bzip2.1 \
147 $(DISTNAME)/bzip2.1.preformatted \ 146 $(DISTNAME)/bzip2.1.preformatted \
@@ -157,9 +156,12 @@ tarfile:
157 $(DISTNAME)/sample2.bz2 \ 156 $(DISTNAME)/sample2.bz2 \
158 $(DISTNAME)/sample3.bz2 \ 157 $(DISTNAME)/sample3.bz2 \
159 $(DISTNAME)/dlltest.c \ 158 $(DISTNAME)/dlltest.c \
160 $(DISTNAME)/*.html \ 159 $(DISTNAME)/manual.html \
160 $(DISTNAME)/manual.pdf \
161 $(DISTNAME)/manual.ps \
161 $(DISTNAME)/README \ 162 $(DISTNAME)/README \
162 $(DISTNAME)/README.COMPILATION.PROBLEMS \ 163 $(DISTNAME)/README.COMPILATION.PROBLEMS \
164 $(DISTNAME)/README.XML.STUFF \
163 $(DISTNAME)/CHANGES \ 165 $(DISTNAME)/CHANGES \
164 $(DISTNAME)/libbz2.def \ 166 $(DISTNAME)/libbz2.def \
165 $(DISTNAME)/libbz2.dsp \ 167 $(DISTNAME)/libbz2.dsp \
@@ -175,18 +177,29 @@ tarfile:
175 $(DISTNAME)/bzmore.1 \ 177 $(DISTNAME)/bzmore.1 \
176 $(DISTNAME)/bzgrep \ 178 $(DISTNAME)/bzgrep \
177 $(DISTNAME)/bzgrep.1 \ 179 $(DISTNAME)/bzgrep.1 \
178 $(DISTNAME)/Makefile-libbz2_so 180 $(DISTNAME)/Makefile-libbz2_so \
181 $(DISTNAME)/bz-common.xsl \
182 $(DISTNAME)/bz-fo.xsl \
183 $(DISTNAME)/bz-html.xsl \
184 $(DISTNAME)/bzip.css \
185 $(DISTNAME)/entities.xml \
186 $(DISTNAME)/manual.xml \
187 $(DISTNAME)/format.pl \
188 $(DISTNAME)/xmlproc.sh
179 gzip -v $(DISTNAME).tar 189 gzip -v $(DISTNAME).tar
180 190
181# For rebuilding the manual from sources on my RedHat 7.2 box 191# For rebuilding the manual from sources on my SuSE 9.1 box
182manual: manual.ps manual.pdf manual.html 192
193MANUAL_SRCS= bz-common.xsl bz-fo.xsl bz-html.xsl bzip.css \
194 entities.xml manual.xml
195
196manual: manual.html manual.ps manual.pdf
183 197
184manual.ps: manual.texi 198manual.ps: $(MANUAL_SRCS)
185 tex manual.texi 199 ./xmlproc.sh -ps manual.xml
186 dvips -o manual.ps manual.dvi
187 200
188manual.pdf: manual.ps 201manual.pdf: $(MANUAL_SRCS)
189 ps2pdf manual.ps 202 ./xmlproc.sh -pdf manual.xml
190 203
191manual.html: manual.texi 204manual.html: $(MANUAL_SRCS)
192 texi2html -split_chapter manual.texi 205 ./xmlproc.sh -html manual.xml