Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
2f3279a5
Unverified
Commit
2f3279a5
authored
Apr 14, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stand alone, write complete update scripts and config
parent
ab213171
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
GNUmakefile.in
+18
-2
test/unit-test.cpp
+2
-0
No files found.
GNUmakefile.in
View file @
2f3279a5
...
@@ -137,6 +137,13 @@ $(OBJDIR)/Symmetry.lo: src/SymOpTable_data.cpp
...
@@ -137,6 +137,13 @@ $(OBJDIR)/Symmetry.lo: src/SymOpTable_data.cpp
endif
endif
data/components.cif.gz
:
mkdir
-p
data
wget
-O
$@
ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif.gz
data/components.cif
:
data/components.cif.gz
gunzip
-c
$^
>
$@
# We have development releases and official releases, for each we
# We have development releases and official releases, for each we
# maintain different versioning schemes.
# maintain different versioning schemes.
...
@@ -209,7 +216,7 @@ define TEST_template =
...
@@ -209,7 +216,7 @@ define TEST_template =
$(1)
_OBJECTS
=
$
$(OBJDIR)
/
$
(
1
)
-test
.o
$(1)
_OBJECTS
=
$
$(OBJDIR)
/
$
(
1
)
-test
.o
test/$(1)-test
:
$(LIB_TARGET) $$($(1)_OBJECTS)
test/$(1)-test
:
$(LIB_TARGET) $$($(1)_OBJECTS)
data/components.cif
@
echo
">>> building
$
(1)-test"
@
echo
">>> building
$
(1)-test"
$(CXX)
$(CXXFLAGS)
$(LDFLAGS)
-o
$$
@
$$
(
$
(
1
)
_OBJECTS
)
-L
.libs
-lcifpp
-lboost_program_options
$(LIBS)
$(CXX)
$(CXXFLAGS)
$(LDFLAGS)
-o
$$
@
$$
(
$
(
1
)
_OBJECTS
)
-L
.libs
-lcifpp
-lboost_program_options
$(LIBS)
...
@@ -244,7 +251,7 @@ HEADERS = \
...
@@ -244,7 +251,7 @@ HEADERS = \
TlsParser.hpp
TlsParser.hpp
.PHONY
:
install
.PHONY
:
install
install
:
lib
install
:
lib
data/components.cif.gz
install
-d
$(libdir)
install
-d
$(libdir)
$(LIBTOOL)
--mode
=
install install
$(LIB_TARGET)
$(libdir)
$(LIBTOOL)
--mode
=
install install
$(LIB_TARGET)
$(libdir)
install
-d
$(datadir)
/libcifpp
install
-d
$(datadir)
/libcifpp
...
@@ -254,7 +261,16 @@ install: lib
...
@@ -254,7 +261,16 @@ install: lib
install
-m644
rsrc/
$$
d
$(datadir)
/libcifpp
;
\
install
-m644
rsrc/
$$
d
$(datadir)
/libcifpp
;
\
gzip
-f
$(datadir)
/libcifpp/
$$
d
;
\
gzip
-f
$(datadir)
/libcifpp/
$$
d
;
\
done
done
install
-m644
data/components.cif.gz
$(datadir)
/libcifpp/
install
-d
$(CACHE_DIR)
install
-d
$(CRON_DIR)
install
-d
$(CRON_DIR)
if
[
!
-f
/etc/libcifpp.conf
]
;
then
\
echo
"# Uncomment the next line to enable automatic updates"
>
/etc/libcifpp.conf
;
\
echo
"# update=true"
>>
/etc/libcifpp.conf
;
\
echo
""
;
\
echo
"Update the /etc/libcifpp.conf file to enable automatic updates"
;
\
echo
""
;
\
fi
install
-m755
tools/update-dictionary-script
$(CRON_DIR)
/libcifpp
install
-m755
tools/update-dictionary-script
$(CRON_DIR)
/libcifpp
install
-d
$(includedir)
/cif++
install
-d
$(includedir)
/cif++
for
f
in
$(HEADERS)
;
do
install include/cif++/
$$
f
$(includedir)
/cif++/
$$
f
;
done
for
f
in
$(HEADERS)
;
do
install include/cif++/
$$
f
$(includedir)
/cif++/
$$
f
;
done
...
...
test/unit-test.cpp
View file @
2f3279a5
...
@@ -1219,6 +1219,8 @@ BOOST_AUTO_TEST_CASE(bondmap_1)
...
@@ -1219,6 +1219,8 @@ BOOST_AUTO_TEST_CASE(bondmap_1)
{
{
cif
::
VERBOSE
=
2
;
cif
::
VERBOSE
=
2
;
cif
::
addFileResource
(
"components.cif"
,
"../data/components.cif"
);
// sections taken from CCD compounds.cif
// sections taken from CCD compounds.cif
auto
components
=
R"(
auto
components
=
R"(
data_ASN
data_ASN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment