File: Makefile

package info (click to toggle)
cmucl 20a-20090928-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 34,876 kB
  • ctags: 33,376
  • sloc: lisp: 346,338; ansic: 27,356; asm: 3,724; sh: 1,167; makefile: 329; csh: 31
file content (118 lines) | stat: -rw-r--r-- 5,545 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
RELEASE=20a
BRANCH="20a-release"

.PHONY : clean

ifeq ($(origin DESTDIR), undefined)
DESTDIR=/
DESTCMU=/
DESTSRC=/
DESTCLM=/
else
DESTCMU=$(DESTDIR)cmucl/
DESTSRC=$(DESTDIR)cmucl-source/
DESTCLM=$(DESTDIR)cmucl-clm/
endif

all:
	rm -rf target || true 
	./src/tools/create-target.sh target linux_gencgc x86  || true 
	./src/tools/build-world.sh  target
	./src/tools/rebuild-lisp.sh target
	./src/tools/build-world.sh  target
	./src/tools/load-world.sh target "CVS $(RELEASE) $(BRANCH) + minimal debian patches" 
	./src/tools/build-utils.sh target


doc:
	 (cd src/docs && make all)

install-dep:
	install -g root -o root -m 0755 target/motif/server/motifd \
		$(DESTCLM)usr/lib/cmucl/
	install -g root -o root -m 0644 target/interface/clm-library.sse2f \
		$(DESTCLM)usr/lib/cmucl/subsystems/
	install -g root -o root -m 0644 target/clx/clx-library.sse2f \
		target/hemlock/hemlock-library.sse2f \
		target/pcl/gray-streams-library.sse2f \
		target/pcl/simple-streams-library.sse2f \
		target/pcl/iodefs-library.sse2f \
		target/pcl/gray-compat-library.sse2f \
		$(DESTCMU)usr/lib/cmucl/subsystems/
	install -g root -o root -m 0644 src/lisp/*.h target/lisp/*.h target/lisp/*.map target/lisp/*.nm \
		$(DESTCMU)usr/lib/cmucl/include/
	install -g root -o root -m 0644 \
		own-work/hemlock11.cursor own-work/hemlock11.mask  \
			$(DESTCMU)usr/lib/cmucl/
	install -g root -o root -m 0644 \
			own-work/site-init.lisp  \
			$(DESTCMU)etc/common-lisp/cmucl/
	install -g root -o root -m 644 own-work/install-clc.lisp \
			$(DESTCMU)usr/lib/cmucl/
	ln -s /etc/common-lisp/cmucl/site-init.lisp $(DESTCMU)usr/lib/cmucl/
	install -g root -o root -m 0644 target/lisp/lisp-sse2.core $(DESTCMU)usr/lib/cmucl/lisp-sse2-dist.core
	install -g root -o root -m 0755 target/lisp/lisp $(DESTCMU)usr/bin/cmucl
	install -g root -o root -m 0644 src/tools/config.lisp src/code/generic-site.lisp \
	   target/lisp/lisp.nm target/lisp/lisp.map target/lisp/internals.h \
	   target/lisp/internals.inc $(DESTCMU)usr/lib/cmucl/
	install -g root -o root -m 0755 own-work/cmucl-script.sh $(DESTCMU)usr/lib/common-lisp/bin/cmucl.sh
	install -g root -o root -m 0755 own-work/cmucl-run $(DESTCMU)usr/bin/cmucl-run
	install -g root -o root -m 0644 own-work/binfmt $(DESTCMU)usr/share/binfmts/cmucl
	install -g root -o root -m 0444 src/general-info/cmucl.1 $(DESTCMU)usr/share/man/man1/cmucl-lisp.1
	install -g root -o root -m 0444 src/general-info/lisp.1 $(DESTCMU)usr/share/man/man1/cmucl.1
	install -g root -o root -m 0444 src/general-info/lisp.1 $(DESTCMU)usr/share/man/man1/lisp.1
	install -g root -o root -m 0444 own-work/cmucl-run.1 \
	   $(DESTCMU)usr/share/man/man1/cmucl-run.1
	install -g root -o root -m 0444 src/pcl/simple-streams/external-formats/*.lisp \
              $(DESTCMU)usr/lib/cmucl/ext-formats/
	install -g root -o root -m 0444 ./src/i18n/unidata.bin \
              $(DESTCMU)usr/lib/cmucl/ext-formats/

install-indep:
	install -g root -o root -m 0644 own-work/cmucl-graystream.asd \
	  $(DESTSRC)usr/share/common-lisp/source/cmucl-graystream/cmucl-graystream.asd
	install -g root -o root -m 0644 own-work/cmucl-clx.asd \
	  $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/cmucl-clx.asd
	(cd src ; find . -name "*.lisp" -and -type f | tar --create --file=-  --files-from=- ) | \
	  (cd $(DESTSRC)usr/share/common-lisp/source/cmucl/ ; tar --extract --file=- )
	chown root.root -R $(DESTSRC)usr/share/common-lisp/source/cmucl/
	find $(DESTSRC)usr/share/common-lisp/source/cmucl/ -type f -print0 | xargs -0 chmod 0644
	find $(DESTSRC)usr/share/common-lisp/source/cmucl/ -type d -print0 | xargs -0 chmod 0755
	install -g root -o root -m 0644 src/clx/*.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/
	install -g root -o root -m 0644 src/code/clx-ext.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/
	install -g root -o root -m 0644 src/hemlock/charmacs.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/
	install -g root -o root -m 0644 src/hemlock/key-event.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/
	install -g root -o root -m 0644 src/hemlock/keysym-defs.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/
	install -g root -o root -m 0644 src/clx/debug/*.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/debug/
	install -g root -o root -m 0644 src/clx/demo/*.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/demo/
	install -g root -o root -m 0644 src/clx/test/*.lisp $(DESTSRC)usr/share/common-lisp/source/cmucl-clx/test/
	install -g root -o root -m 0644 src/pcl/gray-streams* $(DESTSRC)usr/share/common-lisp/source/cmucl-graystream/
	install -g root -o root -m 0644 src/hemlock/*.lisp \
					src/hemlock/XKeysymDB \
					src/hemlock/compilation.order \
					src/hemlock/hemlock.log \
					src/hemlock/hemlock.upd \
					src/hemlock/hemlock11.cursor \
					src/hemlock/hemlock11.mask \
					src/hemlock/mh-scan \
					src/hemlock/notes.txt \
					src/hemlock/perq-hemlock.log \
					src/hemlock/spell-dictionary.text \
					src/hemlock/things-to-do.txt \
					$(DESTSRC)usr/share/common-lisp/source/cmucl-hemlock/

new-gen:
	rm -rf target || true
	./src/tools/create-target.sh target linux_gencgc x86  || true
	./src/tools/build-world.sh  target bin/lisp 
	./src/tools/rebuild-lisp.sh target
	./src/tools/build-world.sh  target bin/lisp
	./src/tools/load-world.sh target "CVS $(RELEASE) + minimal debian patches" 
	./src/tools/build-utils.sh target
	cp target/lisp/lisp target/lisp/lisp.core bin/

clean:
	find  . -name "*~" -or -name ".#*" | xargs rm ; true
	rm -rf target || true
	(cd src/docs && make clean)