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 (47 lines) | stat: -rwxr-xr-x 1,014 bytes parent folder | download | duplicates (2)
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
. ../config/system
. ../config/site

if [ _$load_obj = _ ]; then
    load_obj=none
fi

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

SHELL=/bin/sh

FILES= linkscheme makedl ldflags

all:      \$(FILES)

localize: \$(FILES)

linkscheme:	src/linkscheme ../config/system ../config/site
	\$(SHELL) src/\$@ > \$@
	chmod +x \$@

makedl:		src/makedl-$load_obj ../config/system ../config/site
	\$(SHELL) src/makedl-$load_obj > \$@
	chmod +x \$@

ldflags:	src/ldflags ../config/system ../config/site
	\$(SHELL) src/\$@ > \$@
	chmod +x \$@

install: \$(FILES)
	-@if [ ! -d $install_dir/bin ]; then \\
	    echo mkdir $install_dir/bin; \\
	    mkdir $install_dir/bin; \\
	fi
	cp linkscheme $install_dir/bin
	cp makedl $install_dir/bin
	-@if [ ! -d $install_dir/lib/elk ]; then \\
	    echo mkdir $install_dir/lib/elk; \\
	    mkdir -p $install_dir/lib/elk; \\
	fi
	cp ldflags $install_dir/lib/elk

distclean:
	rm -f \$(FILES) Makefile.local
EOT