File: Makefile.in

package info (click to toggle)
dsc 1.0-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,212 kB
  • ctags: 587
  • sloc: lisp: 3,006; sh: 1,373; ansic: 862; cpp: 835; makefile: 229
file content (84 lines) | stat: -rw-r--r-- 2,313 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
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
# Makefile template for dsc-1.0	-*-Makefile-*-
# Copyright (C) 1996 Henry Thompson ht@cogsci.ed.ac.uk (Henry S. Thompson)
# $Header: /home/ht/work/dsssl/dsc-1.0/RCS/Makefile.in,v 1.3 1997/01/27 14:42:58 ht Exp $

# configure uses this to build a Makefile

include sp-1.1.1/Makefile.env

# Name of GNU make utility, maybe
@SET_MAKE@

# Keep /bin/sh cd from screwing up
CDPATH =

prefix=@prefix@
exec_prefix=@exec_prefix@
srcdir=@srcdir@
# Where to install the binaries
bindir=@bindir@
libdir=@libdir@
ELKRUNDIR=@libdir@/elk
INSTALL=@INSTALL@

all:	all_sp-1.1.1 all_elk-3.0 all_src
clean:  clean_sp-1.1.1 clean_elk-3.0 clean_src

%_src: FORCE
	set -e ; \
	if test ! -d "$(ELKRUNDIR)"; \
	 then exit 1; \
	fi
	$(MAKE) -C src DSCSRCDIR="$(ELKRUNDIR)/scm:$(ELKRUNDIR)/obj" -f Makefile.sub $@

%_sp-1.1.1: FORCE
	@if test ! -f .sp-1.1.1-built ;\
	then \
	cd sp-1.1.1 && $(MAKE) -f Makefile.sub $@ ; \
	fi

%_elk-3.0: FORCE
	@if test ! -f .elk-3.0-built ;\
	then \
	cd elk-3.0 && $(MAKE) INSTALLDIR=`pwd` -f Makefile.sub $@ ;\
	fi

SCMFILES= apropos.scm bitstring.scm cscheme.scm debug.scm describe.scm \
          gdbmtest.scm initscheme.scm motif.scm oops.scm parse.scm pp.scm \
          qsort.scm record.scm recordutil.scm regexp.scm safe-env.scm setf.scm \
          siteinfo.scm struct.scm toplevel.scm trace.scm unix.scm

MISOBJS= bitstring.o debug.o elk-eval.o hack.o monitor.o newhandler.o record.o \
         regexp.o struct.o 

install: src/dsc
	$(INSTALL) src/dsc $(bindir)/dsc
	set -e;\
	if test ! -f .elk-3.0-built ;\
	then \
	if test ! -d $(ELKRUNDIR)/scm; then mkdir -p $(ELKRUNDIR)/scm; fi ;\
	if test ! -d $(ELKRUNDIR)/obj; then mkdir -p $(ELKRUNDIR)/obj; fi ;\
	cd elk-3.0/scm; \
	for i in $(SCMFILES) ;\
	do \
	    install -m 644 $$i $(ELKRUNDIR)/scm; \
	done; \
	cd ../lib/unix; \
	install -m 644 --strip unix.pre $(ELKRUNDIR)/obj/unix.o; \
	cd ../misc; \
	for i in $(MISOBJS) ;\
	do \
	    install -m 644 --strip $$i $(ELKRUNDIR)/obj; \
	done; \
	fi

distclean: clean
	rm -f config.cache config.status config.log \
		.sp-1.1.1-built .elk-3.0-built Makefile Makefile.sub \
		src/Makefile.sub
	cd sp-1.1.1 && rm -f config.status config.log Makefile.sub \
		Makefile.env Makefile.lib Makefile
	cd elk-3.0  && rm -f config/site config/system */Makefile.local \
			include/config.h Makefile.sub

FORCE: