-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
68 lines (61 loc) · 1.23 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
#for GNU make
FILES = LICENSE.txt \
CHANGE-LOG.txt \
readme.html \
readme-jp.html
DC_FILES = LICENSE.txt \
Makefile \
mainpage.txt \
tinymt32dc.0.20.txt \
tinymt64dc.0.20.txt \
doxygen.cfg \
output.hpp \
tinymt32dc.cpp \
tinymt64dc.cpp \
parse_opt.cpp \
tinymt32search.hpp \
tinymt64search.hpp \
getid.cpp \
parse_opt.h
TINYMT_FILES = LICENSE.txt \
Makefile \
check32.c \
check32.out.txt \
check64.c \
check64.out.txt \
doxygen.cfg \
mainpage.txt \
tinymt32.c \
tinymt32.h \
tinymt64.c \
tinymt64.h
VERSION = 1.1.1
DIR = TinyMT-src-${VERSION}
.PHONY : tar.gz
tar.gz: $(FILES)
mkdir ${DIR}
cp ${FILES} ${DIR}
mkdir ${DIR}/dc
mkdir ${DIR}/dc/include
mkdir ${DIR}/dc/src
(cd dc; cp -r include ../${DIR}/dc)
(cd dc/src; cp ${DC_FILES} ../../${DIR}/dc/src)
mkdir ${DIR}/tinymt
(cd tinymt; cp ${TINYMT_FILES} ../${DIR}/tinymt)
tar czvf ${DIR}.tar.gz ${DIR}/*
rm -rf ${DIR}
.PHONY : zip
zip: $(FILES)
mkdir ${DIR}
cp ${FILES} ${DIR}
mkdir ${DIR}/dc
mkdir ${DIR}/dc/include
mkdir ${DIR}/dc/src
(cd dc; cp -r include ../${DIR}/dc)
(cd dc/src; cp ${DC_FILES} ../../${DIR}/dc/src)
mkdir ${DIR}/tinymt
(cd tinymt; cp ${TINYMT_FILES} ../${DIR}/tinymt)
zip -r ${DIR}.zip ${DIR}/*
rm -rf ${DIR}
clean:
rm -f *.o *~