python36: add libressl patch
[unleashed-userland.git] / make-rules / common-lisp.mk
blob3e9ff6437f6cd6b3dd303c3f4287c721115bf1e1
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.,
21 # build: $(BUILD_32)
23 # install: $(INSTALL_32)
25 # Since common lisp libraries are all source code, there is no need for
26 # BUILD_64 and INSTALL_64.
28 INSTALL_DIR = $(PROTOCLDIR)/source/$(COMPONENT_NAME)
30 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep
31 $(MKDIR) $(@D)
32 $(TOUCH) $@
34 $(BUILD_DIR)/%/.installed: $(BUILD_DIR)/%/.built
35 $(MKDIR) $(PROTOCLDIR)
36 $(MKDIR) $(PROTOCLDIR)/source
37 $(MKDIR) $(PROTOCLDIR)/systems
38 $(MKDIR) $(INSTALL_DIR)
39 $(CP) -a $(SOURCE_DIR)/* $(INSTALL_DIR)
40 (cd $(PROTOCLDIR)/systems; \
41 $(RM) $(COMPONENT_NAME).asd; \
42 $(LN) -s ../source/$(COMPONENT_NAME)/$(COMPONENT_NAME).asd)
43 $(TOUCH) $@
45 clean::
46 $(RM) -r $(BUILD_DIR) $(PROTO_DIR)