2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
16 # Rules to install a common lisp library package.
18 # To use these rules, just include ../make-rules/common-lisp.mk in your
19 # Makefile and define "build" and "install" targets. E.g.,
23 # install: $(INSTALL_32)
25 # Since common lisp libraries are all source code, there is no need for
26 # BUILD_64 and INSTALL_64.
30 INSTALL_DIR
= $(PROTOCLDIR
)/source
/$(COMPONENT_NAME
)
32 $(BUILD_DIR
)/%/.built
: $(SOURCE_DIR
)/.prep
36 $(BUILD_DIR
)/%/.installed
: $(BUILD_DIR
)/%/.built
37 $(MKDIR
) $(PROTOCLDIR
)
38 $(MKDIR
) $(PROTOCLDIR
)/source
39 $(MKDIR
) $(PROTOCLDIR
)/systems
40 $(MKDIR
) $(INSTALL_DIR
)
41 $(CP
) -a
$(SOURCE_DIR
)/* $(INSTALL_DIR
)
42 (cd
$(PROTOCLDIR
)/systems
; \
43 $(RM
) $(COMPONENT_NAME
).asd
; \
44 $(LN
) -s ..
/source
/$(COMPONENT_NAME
)/$(COMPONENT_NAME
).asd
)
48 $(RM
) -r
$(BUILD_DIR
) $(PROTO_DIR
)