-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·144 lines (122 loc) · 5.98 KB
/
Makefile
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
139
140
141
142
143
144
# Where the PEOS web UI will be installed. You must set HTML_DIR as an
# environment variable pointing to the parent of the PEOS dir,
# i.e. $(HOME)/public_html or /web/username/.
TREEBUILD= /scratch
TREETOP= peos
INSTALL_DIR=$(HTML_DIR)/PEOS
TCLF_DIR=peos/src/os/kernel
SUBDIRS = pml os/kernel # ui/web2 ui/ajax-cgi ui/carepathways
V = @
all: build #install
build: dummy
set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done
clean:
set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
rm -f core *~
clobber: clean
set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clobber; done
update:
cvs update $(SUBDIRS) Makefile
# DO NOT USE THIS UNLESS YOUR ENVIRONMENT WILL SPAWN YOUR EDITOR FOR THE LOG MESSAGE!!!
commit:
cvs commit $(SUBDIRS) Makefile
# Dist depends on all but may not be ready for it yet!
#dist: all
dist:
${V}rm -rf ${TREEBUILD}/${TREETOP}
${V}cd ${TREEBUILD} && mkdir -p ./${TREETOP} ./${TREETOP}/os \
./${TREETOP}/ui/gtk-gui/gtk \
./${TREETOP}/os/kernel ./${TREETOP}/pml ./${TREETOP}/ui \
./${TREETOP}/ui/java-gui ./${TREETOP}/ui/java-gui/include \
./${TREETOP}/ui/gtk-gui && cd -
${V}cp -rf ./os/kernel/*.c ./os/kernel/*.h \
${TREEBUILD}/${TREETOP}/os/kernel
${V}cp -rf ./pml/*.c ./pml/*.h ./pml/*.l ${TREEBUILD}/${TREETOP}/pml
${V}cp -rf ./ui/java-gui/*.java ${TREEBUILD}/${TREETOP}/ui/java-gui/
${V}cp -f ./ui/java-gui/include/java-gui.jar ${TREEBUILD}/${TREETOP}/ui/java-gui/include
${V}cp -rf ./ui/java-gui/images ${TREEBUILD}/${TREETOP}/ui/java-gui/images
${V}rm -rf ${TREEBUILD}/${TREETOP}/ui/java-gui/images/CVS
${V}cp -rf ./ui/java-gui/help ${TREEBUILD}/${TREETOP}/ui/java-gui/help
${V}rm -rf ${TREEBUILD}/${TREETOP}/ui/java-gui/help/CVS \
${TREEBUILD}/${TREETOP}/ui/java-gui/help/images/CVS
${V}cp -rf ./models ${TREEBUILD}/${TREETOP}/models
${V}rm -rf ${TREEBUILD}/${TREETOP}/models/CVS \
${TREEBUILD}/${TREETOP}/models/Makefile
${V}cp -rf ./ui/java-gui/bin ${TREEBUILD}/${TREETOP}/ui/java-gui/bin
${V}rm -rf ${TREEBUILD}/${TREETOP}/ui/java-gui/bin/*
${V}cp -rf ./ui/GUI/*.c ./ui/GUI/*.h ./ui/GUI/image \
./ui/GUI/gtk ./ui/GUI/README ${TREEBUILD}/${TREETOP}/ui/gtk-gui
${V}rm -rf ${TREEBUILD}/${TREETOP}/ui/gtk-gui/gtk/CVS \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/image/CVS \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/image/NEWS \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/image/README \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/gtk/NEWS \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/gtk/README
${V}rm -rf ${TREEBUILD}/${TREETOP}/ui/java-gui/test*
${V}cp -f ./README.dist ${TREEBUILD}/${TREETOP}/README
${V}cp -f ./INSTALL.dist ${TREEBUILD}/${TREETOP}/INSTALL
${V}cp -f ./configure.in ${TREEBUILD}/${TREETOP}/configure
${V}cp -f ./install-sh.in ${TREEBUILD}/${TREETOP}/install-sh
${V}cp -f ./config.h.in ${TREEBUILD}/${TREETOP}/
${V}cp -f ./config.sub.in ${TREEBUILD}/${TREETOP}/config.sub
${V}cp -f ./config.guess.in ${TREEBUILD}/${TREETOP}/config.guess
${V}cp -f ./Makefile.in ${TREEBUILD}/${TREETOP}/Makefile.in
${V}cp -f ./pml/Makefile.in ${TREEBUILD}/${TREETOP}/pml
${V}cp -f ./os/Makefile.in ${TREEBUILD}/${TREETOP}/os
${V}cp -f ./os/kernel/Makefile.in ${TREEBUILD}/${TREETOP}/os/kernel
${V}cp -f ./ui/Makefile.in ${TREEBUILD}/${TREETOP}/ui
${V}cp -f ./ui/java-gui/Makefile.in \
${TREEBUILD}/${TREETOP}/ui/java-gui/Makefile.in
${V}cp -f ./ui/GUI/Makefile.in ${TREEBUILD}/${TREETOP}/ui/gtk-gui
${V}chmod 0755 ${TREEBUILD}/${TREETOP} ${TREEBUILD}/${TREETOP}/ui \
${TREEBUILD}/${TREETOP}/ui/java-gui ${TREEBUILD}/${TREETOP}/ui/gtk-gui \
${TREEBUILD}/${TREETOP}/os \
${TREEBUILD}/${TREETOP}/os/kernel \
${TREEBUILD}/${TREETOP}/models ${TREEBUILD}/${TREETOP}/os \
${TREEBUILD}/${TREETOP}/pml ${TREEBUILD}/${TREETOP}/configure \
${TREEBUILD}/${TREETOP}/install-sh \
${TREEBUILD}/${TREETOP}/config.sub \
${TREEBUILD}/${TREETOP}/config.guess
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/ui/java-gui/*.java \
${TREEBUILD}/${TREETOP}/ui/java-gui/*.in \
${TREEBUILD}/${TREETOP}/Makefile.in
${V}chmod 0755 ${TREEBUILD}/${TREETOP}/ui/java-gui/bin \
${TREEBUILD}/${TREETOP}/ui/java-gui/help \
${TREEBUILD}/${TREETOP}/ui/java-gui/images \
${TREEBUILD}/${TREETOP}/ui/java-gui/include
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/ui/java-gui/help/*.htm\
${TREEBUILD}/${TREETOP}/ui/java-gui/help/*.jpg\
${TREEBUILD}/${TREETOP}/ui/java-gui/help/*.doc\
${TREEBUILD}/${TREETOP}/ui/java-gui/help/*.db \
${TREEBUILD}/${TREETOP}/config.h.in
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/ui/java-gui/help/images/*.jpg \
${TREEBUILD}/${TREETOP}/ui/java-gui/help/images/*.gif \
${TREEBUILD}/${TREETOP}/ui/java-gui/help/images/*.GIF \
${TREEBUILD}/${TREETOP}/ui/java-gui/help/images/*.png \
${TREEBUILD}/${TREETOP}/ui/java-gui/include/java-gui.jar
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/ui/java-gui/images/*.jpg \
${TREEBUILD}/${TREETOP}/ui/java-gui/images/*.gif
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/ui/gtk-gui/*.c \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/*.h ${TREEBUILD}/${TREETOP}/ui/gtk-gui/*.in \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/README
${V}chmod 0755 ${TREEBUILD}/${TREETOP}/ui/gtk-gui/gtk \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/gtk/gtkrc \
${TREEBUILD}/${TREETOP}/ui/gtk-gui/image \
${TREEBUILD}/${TREETOP}/ui/java-gui/images
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/ui/gtk-gui/gtk/*.png
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/ui/gtk-gui/image/*.xpm
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/README ${TREEBUILD}/${TREETOP}/INSTALL
${V}chmod 0644 ${TREEBUILD}/${TREETOP}/models/*.pml \
${TREEBUILD}/${TREETOP}/pml/*.h ${TREEBUILD}/${TREETOP}/pml/*.c \
${TREEBUILD}/${TREETOP}/pml/*.l ${TREEBUILD}/${TREETOP}/pml/*.in \
${TREEBUILD}/${TREETOP}/os/*.in ${TREEBUILD}/${TREETOP}/os/kernel/*.c \
${TREEBUILD}/${TREETOP}/os/kernel/*.h ${TREEBUILD}/${TREETOP}/os/kernel/*.in \
${TREEBUILD}/${TREETOP}/ui/*.in
${V}echo ...start of peos.tar.gz build...
${V}tar -C ${TREEBUILD} -zcf peos.tar.gz ${TREETOP}
${V}echo .....end of peos.tar.gz build...
${V}rm -rf ${TREEBUILD}/${TREETOP}
${V}chmod -f 0644 ./peos.tar.gz
install:
$(MAKE) -C ui/web2 install INSTALL_DIR=$(HTML_DIR)/PEOS
dummy: