-
Notifications
You must be signed in to change notification settings - Fork 65
/
Makefile
45 lines (35 loc) · 847 Bytes
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# CPPTRAJ - Main makefile
# Daniel R. Roe
# 2014-12-10
# Make all targets
all: install
# Install all targets
install: config.h
cd src && $(MAKE) install
@echo "Install complete."
@echo ""
# Create libcpptraj.so
libcpptraj: config.h
cd src && $(MAKE) libcpptraj
# Create static libraries
libstatic: config.h
cd src && $(MAKE) libstatic
# Run Tests
check: config.h
cd test && $(MAKE) test.complete summary
# Run Tests, print errors to STDOUT
verbosecheck: config.h
cd test &&$(MAKE) test.showerrors
unittest: config.h
cd unitTests && $(MAKE) test.complete summary
# Clean up
clean: config.h
cd src && $(MAKE) clean
cd test && $(MAKE) clean
cd unitTests && $(MAKE) clean
docs: src/cpptraj.Doxyfile
cd doc && make docs
cd src && doxygen cpptraj.Doxyfile
# Remove cpptraj binary
uninstall: config.h
cd src && $(MAKE) uninstall