-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
42 lines (35 loc) · 962 Bytes
/
Makefile
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
VERSION=2.0
include config.mk
PACKAGE_FILES=README ChangeLog \
cheztangle chezweave chezweb.pdf doc/cwebman.pdf chezwebmac.tex \
runtime.so
build:
./bootstrap
./tangleit
./weaveit
petite:
./bootstrap
./tangleit petite
./weaveit
install:
env BINDIR=${BINDIR} \
TEXDIR=${TEXDIR} \
DOCDIR=${DOCDIR} \
LIBDIR=${LIBDIR} \
OWNER=${OWNER} \
GROUP=${GROUP} \
./installit ${PREFIX}
package: build
rm -rf chezweb-${VERSION}-${MACHINE}
mkdir chezweb-${VERSION}-${MACHINE}
cp ${PACKAGE_FILES} chezweb-${VERSION}-${MACHINE}
tar cvJf chezweb-${VERSION}-${MACHINE}.tar.xz \
chezweb-${VERSION}-${MACHINE}
rm -r chezweb-${VERSION}-${MACHINE}
clean:
rm -rf runtime.ss runtime.sls cheztangle.ss chezweave.ss chezweb.ss
rm -rf runtime.so cheztangle chezweave
rm -rf chezweb.{1,2,3,4,5}
rm -rf chezweb.tex chezweb.pdf doc/cwebman.pdf doc/cwebman.log
rm -rf chezweb.{idx,log,mpx,scn,toc}
rm -rf doc/cwebman.toc