-
Notifications
You must be signed in to change notification settings - Fork 3
/
Imakefile
executable file
·232 lines (196 loc) · 6.37 KB
/
Imakefile
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
#define IHaveSubdirs
SUBDIRS = appsrc config libsrc support
ALLSUBDIRS = libsrc appsrc support
DEPENDSUBDIRS = libsrc appsrc support
SBSOURCEDIRS = libsrc appsrc support
SBDIR = .sb
INSTALLDIRS = bin include lib man
ARCHIVENAME = dicom3tools
ARCHIVEFILES = $(SUBDIRS) BUGS CHANGES Configure COPYRIGHT Doxyfile Imakefile INSTALL Makefile NotAMakefile README TODO VERSION WARNINGS
ARCHIVEIMAGESNAME = dicom3tools_images
ARCHIVEIMAGESFILES = images
ARCHIVETESTNAME = dicom3tools_test
ARCHIVETESTFILES = test
ARCHIVEMANNAME = dicom3tools_man
ARCHIVEMANFILES = man
ARCHIVEWINEXENAME = dicom3tools_winexe
ARCHIVEWINEXEFILES = \
appsrc/acrnema/andump.exe \
/usr/bin/cygwin1.dll \
/usr/bin/cyggcc_s-1.dll \
/usr/bin/cygstdc++-6.dll \
appsrc/dcfile/dcdump.exe \
appsrc/dcfile/dcentvfy.exe \
appsrc/dcfile/dcfile.exe \
appsrc/dcfile/dchist.exe \
appsrc/dcfile/dciodvfy.exe \
appsrc/dcfile/dckey.exe \
appsrc/dcfile/dcsrdump.exe \
appsrc/dcfile/dcstats.exe \
appsrc/dcfile/dctable.exe \
appsrc/dcfile/dcsort.exe \
appsrc/dcfile/dcdirdmp.exe \
appsrc/dcfile/dctoraw.exe \
appsrc/dcfile/dccmp.script \
appsrc/dcfile/dcdiff.script
ARCHIVEMACEXENAME = dicom3tools_macexe
ARCHIVEMACEXEFILES = \
appsrc/acrnema/andump \
appsrc/dcfile/dcdump \
appsrc/dcfile/dcentvfy \
appsrc/dcfile/dcfile \
appsrc/dcfile/dchist \
appsrc/dcfile/dciodvfy \
appsrc/dcfile/dckey \
appsrc/dcfile/dcsrdump \
appsrc/dcfile/dcstats \
appsrc/dcfile/dctable \
appsrc/dcfile/dcsort \
appsrc/dcfile/dcdirdmp \
appsrc/dcfile/dctoraw \
appsrc/dcfile/dccmp.script \
appsrc/dcfile/dcdiff.script
LINKTOIMAGEDIR = ../dctool.support/images
LINKTOTESTDIR = ../dctool.support/test
MakeSubdirs($(ALLSUBDIRS))
DependSubdirs($(DEPENDSUBDIRS))
World:
$(MAKE) $(MFLAGS) Makefile
$(MAKE) $(MFLAGS) Makefiles
$(MAKE) $(MFLAGS) clean
$(MAKE) $(MFLAGS) depend
$(MAKE) $(MFLAGS) setplatform
$(MAKE) $(MFLAGS)
World.unclean:
$(MAKE) $(MFLAGS) Makefile
$(MAKE) $(MFLAGS) Makefiles
$(MAKE) $(MFLAGS) depend
$(MAKE) $(MFLAGS) setplatform
$(MAKE) $(MFLAGS)
NamedTargetSubdirs(library,libsrc,NullParameter,NullParameter,all)
InstallWhatis(NullParameter)
sb: $(SBSOURCEDIRS)
support/linksb $(SBDIR) $(SBSOURCEDIRS)
update.copyright:
support/updatecopyright
setversion:
support/setversion
setplatform:
support/setplatform
archive: setversion clean clean.makefiles clean.config clean.docs archive.unclean
archive.unclean:
$(CP) NotAMakefile Makefile; \
version=""; \
if [ -f VERSION ]; \
then version="_"`cat VERSION`; fi; \
link=$(ARCHIVENAME)$$version; \
ln -s . $$link; \
archive=$(ARCHIVENAME)$$version.$(TAREXT).$(COMPRESSEXT); \
sedstring="s/^[.]/$$link/"; \
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true; export COPYFILE_DISABLE=true; \
echo 'CVS' >Exclude; echo '.DS_Store' >>Exclude; \
if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \
$(TAR) -X Exclude -cvf - `for i in $(ARCHIVEFILES); do echo $$link/$$i; done` \
| $(COMPRESS) > $$archive; \
$(RM) $$link Exclude
archive.images:
version=""; \
if [ -f VERSION ]; \
then version="_"`cat VERSION`; fi; \
link=$(ARCHIVEIMAGESNAME)$$version; \
ln -s . $$link; \
archive=$(ARCHIVEIMAGESNAME)$$version.$(TAREXT).$(COMPRESSEXT); \
sedstring="s/^[.]/$$link/"; \
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true; export COPYFILE_DISABLE=true; \
find . -path '*/CVS/*' | sed -e "$$sedstring" >Exclude; \
if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \
$(TAR) -X Exclude -cvh -f - `for i in $(ARCHIVEIMAGESFILES); do echo $$link/$$i; done` \
| $(COMPRESS) > $$archive; \
$(RM) $$link Exclude
archive.test:
version=""; \
if [ -f VERSION ]; \
then version="_"`cat VERSION`; fi; \
link=$(ARCHIVETESTNAME)$$version; \
ln -s . $$link; \
archive=$(ARCHIVETESTNAME)$$version.$(TAREXT).$(COMPRESSEXT); \
sedstring="s/^[.]/$$link/"; \
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true; export COPYFILE_DISABLE=true; \
find . -path '*/CVS/*' | sed -e "$$sedstring" >Exclude; \
if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \
$(TAR) -X Exclude -cvh -f - `for i in $(ARCHIVETESTFILES); do echo $$link/$$i; done` \
| $(COMPRESS) > $$archive; \
$(RM) $$link Exclude
archive.man: install.man
version=""; \
if [ -f VERSION ]; \
then version="_"`cat VERSION`; fi; \
link=$(ARCHIVEMANNAME)$$version; \
ln -s . $$link; \
archive=$(ARCHIVEMANNAME)$$version.$(TAREXT).$(COMPRESSEXT); \
sedstring="s/^[.]/$$link/"; \
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true; export COPYFILE_DISABLE=true; \
find . -path '*/CVS/*' | sed -e "$$sedstring" >Exclude; \
if [ -f $$archive ]; then $(MV) $$archive $$archive.old; fi; \
$(TAR) -X Exclude -cvf - `for i in $(ARCHIVEMANFILES); do echo $$link/$$i; done` \
| $(COMPRESS) > $$archive; \
$(RM) $$link Exclude
archive.winexe:
version=""; \
if [ -f VERSION ]; \
then version="_"`cat VERSION`; fi; \
link=$(ARCHIVEWINEXENAME)$$version; \
$(RM) $$link; \
mkdir -p $$link; \
cp $(ARCHIVEWINEXEFILES) $$link; \
archive=$(ARCHIVEWINEXENAME)$$version.zip; \
$(RM) $$archive; \
(cd $$link; for i in *.exe; do touch $$i.local; done); \
(cd $$link; zip ../$$archive *.script *.exe *.dll *.exe.local); \
$(RM) $$link
archive.macexe:
#version="_"`uname -p`"_"`uname -s`"_"`uname -r`
version=""; \
if [ -f VERSION ]; \
then version=$$version"_"`cat VERSION`; fi; \
link=$(ARCHIVEMACEXENAME)$$version; \
$(RM) $$link; \
mkdir -p $$link; \
cp $(ARCHIVEMACEXEFILES) $$link; \
archive=$(ARCHIVEMACEXENAME)$$version.zip; \
$(RM) $$archive; \
(cd $$link; zip ../$$archive dc* an*); \
$(RM) $$link
clean.installed:
$(RM) $(INSTALLDIRS)
clean.sb:
$(RM) $(SBDIR)
clean.makefiles:
$(RM) `find . -name 'Makefile*' -print`
clean.config:
$(RM) config/generic.cf
clean.docs:
$(RM) docs
clean.dist: clean clean.makefiles clean.config clean.installed clean.sb clean.docs
$(RM) Exclude
find.pre:
support/findpre
clean.pre:
$(RM) `support/findpre`
install.minimal:
$(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) \
appsrc/acrnema/andump /usr/local/bin
$(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) \
appsrc/dcdisp/dcdisp /usr/local/bin
$(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) \
appsrc/dcfile/dcdump /usr/local/bin
$(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) \
appsrc/dcfile/dciodvfy /usr/local/bin
$(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) \
appsrc/dcfile/dcdict /usr/local/bin
links:
ln -s $(LINKTOIMAGEDIR)
ln -s $(LINKTOTESTDIR)
docs: . clean.docs
$(MKDIR) docs
$(DOXYGEN) Doxyfile