forked from iraf-community/iraf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkpkg
138 lines (118 loc) · 3.38 KB
/
mkpkg
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# Root MKPKG for IRAF. The bootstrap utilities and libraries in the HOST
# subdirectory must be made before this can be run.
$verbose
$call mkall # make everything
$exit
sysgen:
$call vendor
$call mkall
$call update
;
mkall:
$ifeq (hostid, unix) !(clear;date) $endif
$echo "==================== MAKE IRAF! ========================="
$echo "+"
$call syslibs
$call mathlibs
$ifeq (USE_SHLIB, yes) $call shlib $endif
# (fall through)
relink:
$call sysexe
$call packages
$ifeq (hostid, unix) !(touch unix/hlib/utime) $endif
$echo "====================== (done) ==========================="
$ifeq (hostid, unix) !(date) $endif
;
update:
$call sysexe
$call packages
;
vendor:
$echo "======================= VENDOR =========================="
$echo "+"
$call sysgen@vendor
$echo "+" $echo "+"
;
syslibs:
$echo "====================== SYSLIBS =========================="
$echo "+"
$call sysgen@sys
$echo "+" $echo "+"
;
sysexe:
$echo "====================== SYSEXE ==========================="
$echo "+" $echo "+"
$call update@sys
$echo "+" $echo "+"
;
mathlibs:
$echo "====================== MATHLIBS ========================="
$echo "+" $echo "+"
$call mathgen@math
$echo "+" $echo "+"
;
packages:
$echo "====================== PACKAGES ========================="
$echo "+" $echo "+"
# On the UNIX distribution, the BIN directory is excluded from the
# tar tape in a "you relink" distribution. Lets make sure we have
# the directory before proceeding to relink all the packages.
$ifeq (hostid, unix) !(mkdir $(iraf)bin >& /dev/null) $endif
$call update@pkg
$echo "+" $echo "+"
;
# STRIP -- Strip the system of all sources and other files not required to
# run the system, or for user programming.
strip:
$echo "Ignore any messages about cannot delete a file."
$echo "Be sure to do a `cd noao; mkpkg strip' as well."
$echo "Stripping non-runtime files from IRAF source tree..."
!rmfiles -f $(hlib)strip.iraf
;
# SRCARC -- Make a source archive (TAR format) of the system.
srcarc:
!wtar -of $(?tarfile) README mkpkg lib sys math pkg doc
;
# UNIX/IRAF stuff (multiple architecture support).
# ---------------------------------------------------
arch:
showfloat: # show current float option
$verbose off
!$(hlib)/mkfloat
;
generic: # make architecture indep. (no bins)
$verbose off
!$(hlib)/mkfloat generic
!(cd ./unix; export MACH=generic; sh setarch.sh)
;
freebsd: # install freebsd binaries
$verbose off
!$(hlib)/mkfloat freebsd
!(cd ./unix; export MACH=freebsd; sh setarch.sh)
;
;
linux: # install linux (32-bit) binaries
$verbose off
!$(hlib)/mkfloat linux
!(cd ./unix; export MACH=linux; sh setarch.sh)
;
linux64: # install linux (64-bit) binaries
$verbose off
!$(hlib)/mkfloat linux64
!(cd ./unix; export MACH=linux64; sh setarch.sh)
;
macintel: # install MacOS X (x86_64) binaries
$verbose off
!$(hlib)/mkfloat macintel
!(cd ./unix; export MACH=macintel; sh setarch.sh)
;
macosx: # install MacOS X (Unix 32-bit) binaries
$verbose off
!$(hlib)/mkfloat macosx
!(cd ./unix; export MACH=macosx; sh setarch.sh)
;
macos64: # install MacOS X (x86_64) binaries
$verbose off
!$(hlib)/mkfloat macos64
!(cd ./unix; export MACH=macos64; sh setarch.sh)
;