forked from geographiclib/geographiclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
48 lines (36 loc) · 1.19 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
#
# Makefile.am
#
# Copyright (C) 2009, Francesco P. Lovergine <frankie@debian.org>
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src man tools doc include cmake examples tests experimental
EXTRA_DIST = AUTHORS LICENSE.txt NEWS README.md \
CMakeLists.txt maxima doc wrapper
# Install the pkg-config file; the directory is set using
# PKG_INSTALLDIR in configure.ac.
pkgconfig_DATA = cmake/geographiclib.pc
dist-hook:
rm -rf $(distdir)/doc/html $(distdir)/doc/manpages \
$(distdir)/doc/GeographicLib.dox \
$(distdir)/include/GeographicLib/Config.h
find $(distdir)/maxima -type f -name '*.lsp' | xargs rm -rf
find $(distdir)/wrapper -mindepth 2 -type d | xargs rm -rf
find $(distdir)/wrapper -type f -name '*.o' -o -name '*.mex*' | \
xargs rm -f
find $(distdir) \
\( -name '.git*' -o -name Makefile -o -name '*~' -o \
-name '*#*' -o -name 'CMakeFiles' -o -name '*.log' -o \
-name '*.tmp' -o -name '*.bak' -o -name '*.BAK' \) | \
xargs rm -rf
echo $(VERSION) > $(distdir)/VERSION
# Custom rules
all-local: man doc
install-data-local: install-doc
doc: man
$(MAKE) -C doc doc
install-doc:
$(MAKE) -C doc install-doc
man:
$(MAKE) -C man man
.PHONY: doc install-doc man