forked from drsteve/LANLGeoMag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
108 lines (93 loc) · 3.1 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
97
98
99
100
101
102
103
104
105
106
107
108
if HAVE_CHECK
MAYBE_TESTS = tests
endif
if ENABLE_TOOLS
MAYBE_TOOLS = Tools
endif
if HAVE_PYTHON
MAYBE_PY = Python
endif
SUBDIRS = libLanlGeoMag . $(MAYBE_TOOLS) $(MAYBE_TESTS) $(MAYBE_PY)
# if DX_COND_pdf
# MAYBE_PDF = @DX_DOCDIR@/@DX_PROJECT@_Documentation.pdf
# uninst_pdf = $(pdfdir)
# endif
if DX_COND_ps
MAYBE_PS = @DX_DOCDIR@/@[email protected]
uninst_ps = $(psdir)
endif
if DX_COND_html
MAYBE_HTML = @DX_DOCDIR@/html
uninst_html = $(htmldir)
endif
if ENABLE_DOCS
MAYBE_STATIC_PDF = Doc/LanlGeoMag_Documentation.pdf
endif
dist_pdf_DATA = $(MAYBE_PDF) $(MAYBE_STATIC_PDF)
nodist_ps_DATA = $(MAYBE_PS)
if DX_COND_doc
dist_noinst_DATA = @DX_DOCDIR@/@[email protected]
endif
GZIP_ENV = -7
ALL_EXAMPLE_FILES = Examples
ALL_DOC_FILES = Doc/GSM.png Doc/CoordFig.eps Doc/GSM_SM_FIG.svg \
Doc/Geodetic.png Doc/CoordFig2.svg Doc/CoordFig.svg Doc/GSM_SM_FIG.png \
Doc/SM.png Doc/SunPosition.png Doc/SunPosition.eps \
Doc/LanlGeoMag_Documentation.odt Doc/LanlGeoMag_Documentation.pdf \
Doc/CoordFig2.png Doc/IridiumFlareFrame.png Doc/DUT1_DAT.png \
Doc/Geodetic.svg Doc/GSM_SM_FIG.eps.gz Doc/CoordFig.png \
Doc/EopParams_1990_2010.png Doc/TimeDiffs.png
#ALL_VIEW_DRIFT_SHELL_FILES = ViewDriftShell
include doxygen_include.am
MOSTLYCLEANFILES = $(DX_CLEANFILES)
EXTRA_DIST = lanlgeomag.spec $(ALL_EXAMPLE_FILES) $(ALL_DOC_FILES) \
Python HACKING $(DX_CONFIG) $(MAYBE_HTML) fix_doxygen.sed
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -DDATADIR='"$(datadir)"'
if DX_COND_html
#and make sure html is build when doing a make all
#(for some reason this bit doesn't honor DESTDIR without doing it explicitly)
all-local: @DX_DOCDIR@/html
install-data-local:
$(MKDIR_P) -m 755 $(DESTDIR)$(htmldir)/html/
$(INSTALL_DATA) @DX_DOCDIR@/html/*.* $(DESTDIR)$(htmldir)/html/
if [ -d @DX_DOCDIR@/html/search ]; then \
$(MKDIR_P) -m 755 $(DESTDIR)$(htmldir)/html/search; \
$(INSTALL_DATA) @DX_DOCDIR@/html/search/*.* $(DESTDIR)$(htmldir)/html/search; \
fi
uninstall-local:
-rm -rf $(htmldir)/html/
endif
if !DX_COND_doc
if ENABLE_DOCS
#if didn't ask for doxygen, but want docs, just install whatever is already built
#(and uninstall whatever might be there)
uninst_html = $(htmldir)
uninst_ps = $(psdir)
uninst_pdf = $(pdfdir)
install-data-local:
if [ -f @DX_DOCDIR@/html/index.html ]; then \
$(MKDIR_P) -m 755 $(htmldir)/html/; \
$(INSTALL_DATA) @DX_DOCDIR@/html/*.* $(htmldir)/html/; \
fi
if [ -d @DX_DOCDIR@/html/search ]; then \
$(MKDIR_P) -m 755 $(htmldir)/html/search; \
$(INSTALL_DATA) @DX_DOCDIR@/html/search/*.* $(htmldir)/html/search; \
fi
if [ -f @DX_DOCDIR@/@[email protected] ]; then \
$(MKDIR_P) -m 755 $(psdir); \
$(INSTALL_DATA) @DX_DOCDIR@/@[email protected] $(psdir); \
fi
if [ -f @DX_DOCDIR@/@[email protected] ]; then \
$(MKDIR_P) -m 755 $(pdfdir); \
$(INSTALL_DATA) @DX_DOCDIR@/@[email protected] $(pdfdir); \
fi
uninstall-local:
-rm -rf $(htmldir)/html/
-rm -f $(psdir)/@[email protected]
-rm -f $(pdfdir)/@[email protected]
endif ENABLE_DOCS
endif !DX_COND_doc
#remove any doc directories we've made
uninstall-hook:
-rmdir $(uninst_ps) $(uninst_pdf) $(uninst_html) $(docdir)