-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
35 lines (29 loc) · 1.08 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
#############################################################################
## Subdirectories to build in ##
#############################################################################
include $(top_srcdir)/config/commence.am
if BUILD_JAVA_CONDITIONAL
JAVA_DIR=java
else
JAVA_DIR=
endif
SUBDIRS = hdf mfhdf $(JAVA_DIR) man
# install libhdf4.settings in lib directory
settingsdir = $(libdir)
settings_DATA = libhdf4.settings
# 'make install' will now install examples, the same as 'make install-all'.
# 'make-install-all' will be redundant but will still work.
install: install-recursive install-examples
uninstall: uninstall-recursive uninstall-examples
# 'make install-all' also installs examples
install-all:
@$(MAKE) $(AM_MAKEFLAGS) install
@$(MAKE) $(AM_MAKEFLAGS) install-examples
uninstall-all:
@$(MAKE) $(AM_MAKEFLAGS) uninstall
@$(MAKE) $(AM_MAKEFLAGS) uninstall-examples
# Install examples recursively
install-examples uninstall-examples:
@@SETX@; for d in hdf mfhdf; do \
(cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \
done