-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile.am
96 lines (86 loc) · 3.35 KB
/
Makefile.am
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
SUBDIRS = \
po \
$(DCMTK_SUBDIR) \
configuration \
imagepool \
widgets \
src \
packaging \
pixmaps
DIST_SUBDIRS = \
po \
configuration \
imagepool \
widgets \
src \
packaging \
pixmaps
EXTRA_DIST = \
AUTHORS \
COPYING \
COPYING.LIB \
COPYING.DCMTK \
INSTALL \
README \
aeskulap.cbp \
aeskulap.workspace \
gettext.h \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
configure.mingw32
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltoo-update
@INTLTOOL_DESKTOP_RULE@
dist-hook:
mkdir -p $(distdir)/dcmtk
cp -Rf $(top_srcdir)/dcmtk/* $(distdir)/dcmtk
cd $(distdir)/dcmtk && make distclean
list=`find $(distdir)/dcmtk -name "CVS"` && rm -Rf $$list
list=`find $(distdir)/dcmtk -name ".cvsignore"` && rm -f $$list
list=`find $(distdir)/dcmtk -name ".#*"` && rm -f $$list
list=`find $(distdir)/dcmtk -name "*.a"` && rm -f $$list
list=`find $(distdir)/dcmtk -name "*.so"` && rm -f $$list
distclean: distclean-recursive
if test x"" != "x" ; then cd ./dcmtk && make distclean ; fi
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -f Makefile
rpm: dist
mkdir -p rpmbuild
cp $(PACKAGE)-$(VERSION).tar.gz rpmbuild
rpmbuild --buildroot rpmbuild -ba packaging/rpm/$(PACKAGE).spec
dist-win32:
-rm -Rf /tmp/$(PACKAGE)-$(VERSION)
make prefix=/tmp/$(PACKAGE)-$(VERSION)$(prefix) install-strip
-cp -R -f /tmp/$(PACKAGE)-$(VERSION)$(prefix)/* /tmp/$(PACKAGE)-$(VERSION)
-rm -Rf /tmp/$(PACKAGE)-$(VERSION)$(prefix)
-rm -Rf /tmp/$(PACKAGE)-$(VERSION)/usr
if [ -f /tmp/$(PACKAGE)-$(VERSION)/bin/$(target_alias)-aeskulap.exe ] ; then \
mv /tmp/$(PACKAGE)-$(VERSION)/bin/$(target_alias)-aeskulap.exe /tmp/$(PACKAGE)-$(VERSION)/bin/aeskulap.exe ; \
fi
for i in ofstd ijg8 ijg12 ijg16 dcmjpeg dcmdata dcmnet dcmimgle dcmimage dcmtls ; do \
cp $(prefix)/bin/lib$$i.dll /tmp/$(PACKAGE)-$(VERSION)/bin ; \
done
-cp -f $(prefix)/lib/dicom.dic /tmp/$(PACKAGE)-$(VERSION)
-cp -f $(top_srcdir)/COPYING /tmp/$(PACKAGE)-$(VERSION)/license.txt
-cp -f $(top_srcdir)/packaging/win32/aeskulap.iss /tmp/$(PACKAGE)-$(VERSION)
-cp -f $(top_srcdir)/packaging/win32/aeskulap-setup-small.bmp /tmp/$(PACKAGE)-$(VERSION)
-cp -f $(top_srcdir)/packaging/win32/aeskulap-setup-large.bmp /tmp/$(PACKAGE)-$(VERSION)
-cp -f /tmp/$(PACKAGE)-$(VERSION)/share/icons/hicolor/48x48/apps/aeskulap.png /tmp/$(PACKAGE)-$(VERSION)/share/aeskulap/images
$(shell) $(STRIP) -g -S -d --strip-debug --strip-unneeded -x -X --remove-section=.comment --remove-section=.note /tmp/$(PACKAGE)-$(VERSION)/bin/*.exe
$(shell) $(STRIP) -g -S -d --strip-debug --strip-unneeded -x -X --remove-section=.comment --remove-section=.note /tmp/$(PACKAGE)-$(VERSION)/bin/*.dll
-mv /tmp/$(PACKAGE)-$(VERSION)/bin/* /tmp/$(PACKAGE)-$(VERSION)
-rm -Rf /tmp/$(PACKAGE)-$(VERSION)/bin
-cp -R -f /tmp/$(PACKAGE)-$(VERSION)/lib/locale /tmp/$(PACKAGE)-$(VERSION)/share
-rm -Rf /tmp/$(PACKAGE)-$(VERSION)/lib
-rm -f /tmp/$(PACKAGE)-$(VERSION)/share/icons/hicolor/icon-theme.cache
-rm -Rf /tmp/$(PACKAGE)-$(VERSION)/share/applications
cd /tmp && zip -r -9 $(PACKAGE)-$(VERSION).zip $(PACKAGE)-$(VERSION)
-rm -Rf /tmp/$(PACKAGE)-$(VERSION)
mv /tmp/$(PACKAGE)-$(VERSION).zip .
push-dist: dist
scp $(PACKAGE)-$(VERSION).tar.gz pipelka@www.bms-austria.com:/home/pipelka/public_html/aeskulap
push-dist-win32: dist-win32
scp $(PACKAGE)-$(VERSION).zip pipelka@www.bms-austria.com:/home/pipelka/public_html/aeskulap/win32