forked from epics-base/pvaPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (54 loc) · 1.8 KB
/
Makefile
File metadata and controls
76 lines (54 loc) · 1.8 KB
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
TOP = .
AC_DIR = tools/autoconf
DOC_DIR = documentation
CONFIGURE_DIR = configure
RELEASE_LOCAL = $(CONFIGURE_DIR)/RELEASE.local
CONFIG_SITE_LOCAL = $(CONFIGURE_DIR)/CONFIG_SITE.local
ifeq ($(filter $(MAKECMDGOALS),configure distclean),)
# Command-line goal is neither configure nor distclean
ifeq ($(wildcard $(RELEASE_LOCAL)),)
# RELEASE.local file doesn't exist
all:
%:
@echo "The required file $(RELEASE_LOCAL) does not exist."
@echo "See README.txt for instructions on configuring this module"
@echo "by hand, or autoconfigure the module by running"
@echo ""
@echo " make configure EPICS_BASE=<path> EPICS4_DIR=<path>"
@echo ""
@exit 1
else
# RELEASE.local file exists
# Standard EPICS build stuff.
include $(TOP)/configure/CONFIG
DIRS = configure src
src_DEPEND_DIRS = configure
include $(TOP)/configure/RULES_TOP
endif # RELEASE.local
else
# Command-line goal is configure or distclean
RM ?= rm -f
RMDIR ?= rm -rf
configure: $(AC_DIR)/configure
@$(RM) $(RELEASE_LOCAL) $(CONFIG_SITE_LOCAL)
$(AC_DIR)/configure --with-top=$(TOP)
$(AC_DIR)/configure: $(AC_DIR)/configure.ac $(wildcard $(AC_DIR)/m4/*.m4)
autoreconf --install $(AC_DIR)
distclean:
$(RM) setup.sh setup.csh $(RELEASE_LOCAL) $(CONFIG_SITE_LOCAL)
$(RMDIR) lib src/pvaccess/O.* $(AC_DIR)/autom4te.cache
$(RM) $(AC_DIR)/aclocal.m4 $(AC_DIR)/configure $(AC_DIR)/config.log
$(RM) $(AC_DIR)/config.status $(AC_DIR)/install-sh $(AC_DIR)/missing
$(RM) $(AC_DIR)/Makefile $(AC_DIR)/Makefile.in config.log
$(RMDIR) $(AC_DIR)/compile
$(MAKE) -C $(DOC_DIR) distclean
$(RMDIR) $(CONFIGURE_DIR)/O.*
endif # Command-line goal
doc:
$(MAKE) -C $(DOC_DIR)
docclean:
$(MAKE) -C $(DOC_DIR) clean
tidy: distclean
$(MAKE) -C $(DOC_DIR) tidy
.PHONY: configure distclean
.PHONY: doc docclean tidy