-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
92 lines (76 loc) · 2.36 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
ACLOCAL_AMFLAGS = -I m4
SRC_WIN = src_win
include src_win/Makefile
SUBDIRS = src
SRC_WIN_DIST = \
src_win/README
# don't include bootstrap. People run it, and they shoudln't
# It's only for people who check out the git repo
EXTRA_DIST = \
$(SRC_WIN_DIST)
RELEASE = $(PACKAGE)-$(VERSION)
.PHONY: exels
exels:
/bin/ls -l */*exe
.PHONY: execlean
execlean:
/bin/rm -f */*exe
.PHONY: win32
win32: win32/hashdb32.exe
.PHONY: win64
win64: win64/hashdb64.exe
win32/hashdb32.exe:
@echo '****************************************************'
@echo '*** making win32 with mingw32-configure and make ***'
@echo '****************************************************'
if [ -r Makefile ]; then $(MAKE) distclean ; fi
if [ ! -d win32 ]; then mkdir win32 ; fi
if [ ! -r win32/Makefile ]; then (cd win32;mingw32-configure) ; fi
(cd win32;$(MAKE))
(cp win32/src/hashdb.exe win32/hashdb32.exe)
ls -l win32/*.exe
win64/hashdb64.exe:
@echo '****************************************************'
@echo '*** making win64 with mingw32-configure and make ***'
@echo '****************************************************'
if [ -r Makefile ]; then $(MAKE) distclean ; fi
if [ ! -d win64 ]; then mkdir win64 ; fi
if [ ! -r win64/Makefile ]; then (cd win64;mingw64-configure) ; fi
(cd win64;$(MAKE))
(cp win64/src/hashdb.exe win64/hashdb64.exe)
ls -l win64/*.exe
# windist makes win32 and win64 .exe files and puts them in a zip file
# NOTE: this is no longer preferable since we have a hashdb windows installer
# in src_win
windist: win32 win64
rm -rf $(distdir).zip
mkdir $(distdir)
@echo
cp win32/hashdb32.exe $(distdir)
cp win64/hashdb64.exe $(distdir)
@echo ====================================
@echo
@echo Creating ZIP archive
@echo
zip -r9 $(distdir).zip $(distdir)
@echo ====================================
@echo
@echo Adding text files to $(distdir).zip
@echo
cp COPYING $(distdir)/COPYING.txt
md5deep -r $(distdir) > md5list.txt
md5deep -rd $(distdir) > md5list.xml
mv md5list.txt md5list.xml $(distdir)
zip --to-crlf $(distdir).zip $(distdir)/*.txt $(distdir)/*.xml
rm -rf $(distdir)
@echo "***********************"
@echo "*** WINDIST IS MADE ***"
@echo "***********************"
@echo ""
ls -l $(distdir).*
@echo ""
@unzip -l $(distdir).zip
clean-local:
rm -rf $(distdir).tar.gz
rm -rf $(distdir).zip
.PHONY: exels execlean win32 win64 windist