-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.in
122 lines (94 loc) · 3.47 KB
/
Makefile.in
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
119
120
121
122
## Makefile to install OCS from the sources
## @configure_input@
# Copyright 1989 - 1999 by the Opal Group, TU Berlin. All rights reserved
# See OCSHOME/doc/LICENSE or
# http://projects.uebb.tu-berlin.de/opal/trac/wiki/License for details
.PHONY: install default usage
default: usage
srcdir=@srcdir@
bindir=@bindir@
prefix=@prefix@
exec_prefix=@exec_prefix@
## define these variables to match your system
#.. Path to the source of the distribution
OCSSRC=@ocs_abssrcdir@/src
#.. Absolute path to the ProjectDefs file in this directory
OCSPROJECT=@ocs_abssrcdir@/ProjectDefs
#.. Path to the place where the distribution is to be installed
OCSHOME=@prefix@
#.. Description of your system
OSARCH=@host_os@-@host_cpu@
#.. Path to the GNU sed program
SED=@ac_cv_path_SED@
#.. Path to the GNU tar program
TAR=@ac_cv_path_TAR@
#.. Path to the GNU zip program
GZIP=@ac_cv_path_COMPRESS@ -f
#.. Non-vital components of the Opal system (do not change order)
# lib.opal_parserlight lib.opal_readline
# pkg.javabind lib.opal_java pkg.javaexamples
# lib.opal_tcl lib.opal_tk lib.opal_win
# pkg.dynamite lib.oc_reflections
# pkg.browser pkg.emacs pkg.kde pkg.vim pkg.dosfop pkg.doc pkg.ordinatrice
# lib.oasys_shared lib.oasys_main
# pkg.oasys pkg.evaluator pkg.tivi2 pkg.oc5
# lib.oasys_pc pkg.oasyspc lib.oasys_prooflib
STDPACKAGES = @ocs_std_packages@
## don't change anything beyond this line ##############################
#.. Version of the Opal distribution
VERSION = @PACKAGE_VERSION@
DATE = `date +%d-%b-%Y`
LONGVERSION = $(VERSION) ($(DATE))
#.. Extra targets
EXTRAS =
#.. name of the distribution archives
SRCDISTR = ocs-$(VERSION)-src
SHAREDDISTR = ocs-$(VERSION)-shared
BINDISTR = ocs-$(VERSION)-bin-$(OSARCH)
#.. Packages which are to be installed (in the given order!)
INITPACKAGES = pkg.om
BOOTPACKAGES = pkg.opalimports lib.opal_base pkg.genmake \
lib.oc_shared lib.oc_oc1 lib.oc_oc2 pkg.oc1 pkg.oc2
MINPACKAGES = $(BOOTPACKAGES) pkg.getopalname
MINSRCPACKAGES = pkg.examples pkg.tmpl
PACKAGES = $(MINPACKAGES) $(STDPACKAGES)
OCSADMIN = OCSPROJECT=$(OCSPROJECT) $(OCSHOME)/bin/ocsadmin -ocshome $(OCSHOME) -ocssrc $(OCSSRC) -ocsspecs $(OCSSRC)/om/specs
OCSADMININIT = OCSPROJECT=$(OCSPROJECT) $(OCSSRC)/om/scripts/ocsadmin -ocssrc $(OCSSRC) -ocshome $(OCSHOME) -ocsspecs $(OCSSRC)/om/specs
install: init $(BOOTPACKAGES) update-inter pkg.getopalname $(STDPACKAGES) $(EXTRAS)
$(OCSADMIN) install $(MINSRCPACKAGES)
chmod -R a+r @prefix@/*
chmod a+x @prefix@/bin/*
update-inter:
$(OCSADMIN) update_inter lib.opal_base
$(OCSADMIN) update_inter lib.oc_shared
$(OCSADMIN) update_inter lib.oc_oc1
$(OCSADMIN) update_inter lib.oc_oc2
$(OCSADMIN) install lib.opal_base
$(OCSADMIN) install lib.oc_shared
$(OCSADMIN) install lib.oc_oc1
$(OCSADMIN) install lib.oc_oc2
reinstall: reinit $(PACKAGES) $(EXTRAS)
$(OCSADMIN) install $(MINSRCPACKAGES)
chmod -R a+r @prefix@/*
chmod a+x @prefix@/bin/*
init:
$(OCSADMININIT) init -sed $(SED) "$(LONGVERSION)"
$(OCSADMIN) install $(INITPACKAGES)
reinit:
$(OCSADMININIT) init -sed $(SED) reinit "$(LONGVERSION)"
$(OCSADMIN) install $(INITPACKAGES)
pkg.% lib.%:
$(OCSADMIN) ocs $@
$(OCSADMIN) install $@
pkg.doc pkg.examples:
$(OCSADMIN) install $@
extras: $(EXTRAS)
boot: $(MINPACKAGES)
$(OCSADMIN) install $(MINSRCPACKAGES)
complete: $(STDPACKAGES)
usage:
@echo "There is no default target. Run \`make install' instead."
@echo "The build and installation steps of OCS are interleaved for"
@echo "bootstrapping reasons."
dist:
@release/dist_tarball.sh