commit | author | age
|
8a52c2
|
1 |
# |
J'S |
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. |
|
5 |
# |
|
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. |
|
9 |
# |
|
10 |
|
|
11 |
# |
|
12 |
# Copyright 2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
|
13 |
# |
|
14 |
|
|
15 |
# |
|
16 |
# Rules to install a common lisp library package. |
|
17 |
# |
|
18 |
# To use these rules, just include ../make-rules/common-lisp.mk in your |
|
19 |
# Makefile and define "build" and "install" targets. E.g., |
|
20 |
# |
|
21 |
# build: $(BUILD_32) |
|
22 |
# |
|
23 |
# install: $(INSTALL_32) |
|
24 |
# |
|
25 |
# Since common lisp libraries are all source code, there is no need for |
|
26 |
# BUILD_64 and INSTALL_64. |
|
27 |
|
dab0d0
|
28 |
.NOTPARALLEL: |
D |
29 |
|
8a52c2
|
30 |
INSTALL_DIR = $(PROTOCLDIR)/source/$(COMPONENT_NAME) |
J'S |
31 |
|
|
32 |
$(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep |
|
33 |
$(MKDIR) $(@D) |
|
34 |
$(TOUCH) $@ |
|
35 |
|
|
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) |
|
45 |
$(TOUCH) $@ |
|
46 |
|
|
47 |
clean:: |
|
48 |
$(RM) -r $(BUILD_DIR) $(PROTO_DIR) |