/
GNUmakefile
72 lines (59 loc) · 2.26 KB
/
GNUmakefile
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
# --- BEGIN DISCLAIMER ---
# Those who use this do so at their own risk;
# AFSEO does not provide maintenance nor support.
# --- END DISCLAIMER ---
# --- BEGIN AFSEO_DATA_RIGHTS ---
# This is a work of the U.S. Government and is placed
# into the public domain in accordance with 17 USC Sec.
# 105. Those who redistribute or derive from this work
# are requested to include a reference to the original,
# at <https://github.com/afseo/cmits>, for example by
# including this notice in its entirety in derived works.
# --- END AFSEO_DATA_RIGHTS ---
# This Makefile creates the files in the build-products subdirectory. See the
# README therein for more details on what the files are.
B = build-products
FILES = \
texmf.zip \
cmits-example.pdf \
shaney-1.12-py2.6.egg \
shaney-1.12.win32.exe \
B_FILES = $(addprefix $B/, $(FILES))
all: $(B_FILES)
$B/texmf.zip: iadoc/dist/iadoc.zip iacic/dist/iacic.zip
T=$$(mktemp -d); HERE=$$(pwd); \
cd $$T; \
mkdir -p texmf/tex/latex; \
mkdir -p texmf/doc/latex; \
make -C $$HERE/iadoc prefix=foo datadir=$$T docdir=$$T/texmf/doc/latex install; \
make -C $$HERE/iacic prefix=foo datadir=$$T docdir=$$T/texmf/doc/latex install; \
zip -r texmf.zip texmf; \
mv -f texmf.zip $$HERE/$@; \
rm -rf $$T
$B/cmits-example.pdf: cmits-example/unified-policy-document/main.pdf
cp $< $@
$B/shaney-%.egg: shaney/dist/shaney-%.egg
cp $< $@
# In order to build shaney-x.y.win32.exe, setuptools needs two exe files,
# gui.exe and cli.exe, which appear not to be distributed in the RHEL 6
# python-setuptools package. Go find a tar of setuptools 0.6.x, fish out the
# exe files, and drop them under /usr/lib/python/site-packages/setuptools.
$B/shaney-%.win32.exe: shaney/dist/shaney-%.win32.exe
cp $< $@
iadoc/dist/iadoc.zip:
$(MAKE) -C iadoc dist
iacic/dist/iacic.zip:
$(MAKE) -C iacic dist
cmits-example/unified-policy-document/main.pdf:
cd cmits-example/unified-policy-document; python2.6 make.py
shaney/dist/shaney-%.egg:
cd shaney; python2.6 setup.py bdist_egg
shaney/dist/shaney-%.win32.exe:
cd shaney; python2.6 setup.py bdist_wininst -p win32
clean:
rm -f $(B_FILES)
$(MAKE) -C iadoc clean
$(MAKE) -C iacic clean
cd cmits-example/unified-policy-document; python2.6 clean.py
cd shaney; python2.6 setup.py clean
.PHONY: clean