-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makelocal-install
31 lines (27 loc) · 1.18 KB
/
Makelocal-install
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
#--*- Makefile -*--------------------------------------------------------------
#$Author$
#$Revision$
#$Date$
#$URL$
#------------------------------------------------------------------------------
# Collecting Perl binaries and libraries:
CODTOOLS_LIBS = $(shell find src/lib/perl5 -name .svn -prune -o \
-name lib -prune -o \
-name AdHoc.pm -prune -o \
-name Bison.pm -prune -o \
-name IUCr.pm -prune -o \
-name SPGLib.pm -prune -o \
-name Yapp.pm -prune -o \
-name \*.pm -print)
build:
$(MAKE) -C src
install: build src/lib/perl5/COD/ToolsVersion.pm
$(MAKE) install -C src PREFIX=${PREFIX}
test -d ${BIN_INSTALL_DIR} || mkdir -p ${BIN_INSTALL_DIR}
install ${CODTOOLS_SCRIPTS} ${BIN_INSTALL_DIR}
for i in ${CODTOOLS_LIBS:src/lib/%=%}; \
do \
test -d ${PREFIX}/lib/$$(dirname $$i) \
|| mkdir -p ${PREFIX}/lib/$$(dirname $$i); \
install --mode 644 src/lib/$$i ${PREFIX}/lib/$$i; \
done