forked from brosenzweig/RGIS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
106 lines (99 loc) · 3.41 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
include ./common.mk
all: rgis_target rcommands_target rserver_target nccommands_target rgisPlot_target tfcommands_target
install: reinstall
ln -s $(INSTALLDIR)/Scripts/rgis.sh $(INSTALLDIR)/bin/rgis
reinstall: $(INSTALLDIR)/bin $(INSTALLDIR)/XResources/bitmaps $(INSTALLDIR)/Messages $(INSTALLDIR)/html $(INSTALLDIR)/Scripts $(INSTALLDIR)/f $(INSTALLDIR)/include $(INSTALLDIR)/lib
$(UNIXMAKE) -i -C rGIS install
$(UNIXMAKE) -i -C rCommands install
$(UNIXMAKE) -i -C rServer install
$(UNIXMAKE) -i -C rgisPlot install
$(UNIXMAKE) -i -C tfCommands install
$(UNIXMAKE) -i -C CMlib install
$(UNIXMAKE) -i -C DBlib install
$(UNIXMAKE) -i -C Flib install
$(UNIXMAKE) -i -C MFlib install
$(UNIXMAKE) -i -C NClib install
$(UNIXMAKE) -i -C RGlib install
$(UNIXMAKE) -i -C UIlib install
cp XResources/bitmaps/* $(INSTALLDIR)/XResources/bitmaps/
cp XResources/ghaas $(INSTALLDIR)/XResources/
cp -rp html/* $(INSTALLDIR)/html/
cp Messages/*.* $(INSTALLDIR)/Messages/
cp Scripts/*.sh $(INSTALLDIR)/Scripts/
cp f/* $(INSTALLDIR)/f/
chmod -R ugo+rX $(INSTALLDIR)
uninstall:
$(UNIXMAKE) -i -C rGIS uninstall
$(UNIXMAKE) -i -C rCommands uninstall
$(UNIXMAKE) -i -C CMlib uninstall
$(UNIXMAKE) -i -C DBlib uninstall
$(UNIXMAKE) -i -C Flib uninstall
$(UNIXMAKE) -i -C MFlib uninstall
$(UNIXMAKE) -i -C NClib uninstall
$(UNIXMAKE) -i -C RGlib uninstall
$(UNIXMAKE) -i -C UIlib uninstall
rm -rf $(INSTALLDIR)/XResources
rm -rf $(INSTALLDIR)/Messages
rm -rf $(INSTALLDIR)/html
rm -rf $(INSTALLDIR)/Scripts
rm -rf $(INSTALLDIR)/f
rmdir $(INSTALLDIR)/bin
rmdir $(INSTALLDIR)/include
rmdir $(INSTALLDIR)/lib
rmdir $(INSTALLDIR)
clean:
$(UNIXMAKE) -i -C rGIS clean
$(UNIXMAKE) -i -C rgisPlot clean
$(UNIXMAKE) -i -C ncCommands clean
$(UNIXMAKE) -i -C rCommands clean
$(UNIXMAKE) -i -C rServer clean
$(UNIXMAKE) -i -C tfCommands clean
$(UNIXMAKE) -i -C CMlib clean
$(UNIXMAKE) -i -C DBlib clean
$(UNIXMAKE) -i -C NClib clean
$(UNIXMAKE) -i -C RGlib clean
$(UNIXMAKE) -i -C UIlib clean
$(UNIXMAKE) -i -C MFlib clean
$(UNIXMAKE) -i -C Flib clean
$(INSTALLDIR)/bin:
mkdir -p $(INSTALLDIR)/bin
$(INSTALLDIR)/XResources/bitmaps:
mkdir -p $(INSTALLDIR)/XResources/bitmaps
$(INSTALLDIR)/Messages:
mkdir -p $(INSTALLDIR)/Messages
$(INSTALLDIR)/html:
mkdir -p $(INSTALLDIR)/html
$(INSTALLDIR)/Scripts:
mkdir -p $(INSTALLDIR)/Scripts
$(INSTALLDIR)/include:
mkdir -p $(INSTALLDIR)/include
$(INSTALLDIR)/lib:
mkdir -p $(INSTALLDIR)/lib
$(INSTALLDIR)/f:
mkdir -p $(INSTALLDIR)/f
rgis_target: cmlib_target dblib_target rglib_target uilib_target
$(UNIXMAKE) -i -C rGIS all
rcommands_target: cmlib_target rglib_target mflib_target
$(UNIXMAKE) -i -C rCommands all
rserver_target: cmlib_target rglib_target mflib_target
$(UNIXMAKE) -i -C rServer all
nccommands_target: cmlib_target nclib_target
$(UNIXMAKE) -i -C ncCommands all
tfcommands_target: cmlib_target dblib_target flib_target
$(UNIXMAKE) -i -C tfCommands all
rgisPlot_target: cmlib_target dblib_target
$(UNIXMAKE) -i -C rgisPlot all
cmlib_target:
$(UNIXMAKE) -C CMlib all
dblib_target:
$(UNIXMAKE) -C DBlib all
nclib_target:
$(UNIXMAKE) -C NClib all
rglib_target:
$(UNIXMAKE) -C RGlib all
uilib_target:
$(UNIXMAKE) -C UIlib all
mflib_target:
$(UNIXMAKE) -C MFlib all
flib_target:
$(UNIXMAKE) -C Flib all