-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
82 lines (65 loc) · 2.19 KB
/
Makefile.in
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
# Makefile for ASDL
#
# This code is part of the SML/NJ system (http://smlnj.org)
#
# COPYRIGHT (c) 2018 The Fellowship of SML/NJ
# All rights reserved.
#
# @configure_input@
#
SHELL = @SHELL@
@SET_MAKE@
INSTALL = @INSTALL@
BUILD_DIRS = src doc
INSTALL_DIR = @prefix@
INSTALL_BINDIR = $(PREFIX)/bin
INSTALL_HEAPDIR = $(INSTALL_BINDIR)/.heap
INSTALL_WRAPPER = @ASDL_BINDIR@/install-sml-wrapper.sh
SML = @SMLNJ_CMD@
ML_BUILD = @ML_BUILD@
.PHONY: help build local-install install \
clean local-distclean local-devclean
help:
@echo "This Makefile supports the following targets:"
@echo " help -- print this message."
@echo " build -- build asdlgen tool and ASDL libraries"
@echo " local-install -- install asdlgen tool, libraries, and headers in "
@echo " @ASDL_ROOT@/{bin,lib,include}"
@echo " install -- install asdlgen tool, libraries, and headers in "
@echo " @prefix@/{bin,lib,include}"
@echo " clean -- remove intermediate files generated during building"
@echo " distclean -- remove files generated during configuration"
@echo " and building; the resulting tree has the same"
@echo " files as the distribution."
@echo "The following additional targets are primarily for developers:"
@echo " devclean -- remove everything that is not part of the SVN"
@echo " repository."
local-install: $(BUILD_DIRS)
for dir in $(BUILD_DIRS); do \
(cd $$dir && $(MAKE) local-install) || exit $$?; \
done
install: $(BUILD_DIRS)
mkdir -p $(INSTALL_DIR)
for dir in $(BUILD_DIRS); do \
(cd $$dir && $(MAKE) install) || exit $$?; \
done
build: $(BUILD_DIRS) examples doc
(cd src && $(MAKE) build) || exit $$?
doc:
(cd doc; $(MAKE) pdf)
examples:
(cd examples; $(MAKE) build)
#################### Cleanup ####################
CLEAN_SUBDIRS = $(BUILD_DIRS) examples
CLEAN_FILES =
DISTCLEAN_FILES += Makefile config.status config.log \
autom4te*.cache \
src/gen/fragments/Makefile \
src/gen/fragments/mkfrags.sh \
src/gen/fragments/mkmk.sh \
bin \
lib \
include
DEVCLEAN_FILES = configure \
config/config_h.in
include @ASDL_MKDIR@/clean-rules.gmk