File: build

package info (click to toggle)
elk 3.0-8.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,088 kB
  • ctags: 3,115
  • sloc: ansic: 20,686; lisp: 5,232; makefile: 411; awk: 91; sh: 19
file content (46 lines) | stat: -rwxr-xr-x 957 bytes parent folder | download | duplicates (3)
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
. ../config/system
. ../config/site

echo Building Makefile.local...
cat <<EOT >Makefile.local
# This Makefile was produced by running ./build in this directory.

SHELL=/bin/sh

FILES= compat.h\\
       config.h\\
       cstring.h\\
       exception.h\\
       extern.h\\
       funcproto.h\\
       gc.h\\
       misc.h\\
       object.h\\
       param.h\\
       scheme.h\\
       stkmem.h\\
       type.h

config.h:	../config/system ../config/site
	\$(SHELL) ./build-config

install:	\$(FILES)
	-@if [ ! -d $install_dir/include ]; then \\
	    echo mkdir $install_dir/include; \\
	    mkdir $install_dir/include; \\
	fi
	-@if [ ! -d $install_dir/include/elk ]; then \\
	    echo mkdir $install_dir/include/elk; \\
	    mkdir $install_dir/include/elk; \\
	fi
	@for i in \$(FILES) ;\\
	do \\
	    echo cp \$\$i $install_dir/include/elk; \\
	    cp \$\$i $install_dir/include/elk; \\
	done

localize:	config.h

distclean:
	rm -f Makefile.local config.h
EOT