forked from WardLT/pyvoro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (65 loc) · 2.61 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Voro++ makefile
#
# Author : Chris H. Rycroft (LBL / UC Berkeley)
# Email : [email protected]
# Date : August 30th 2011
# Tell make that these are phony targets
.PHONY: all help clean install uninstall
include config.mk
# Build all of the executable files
all:
$(MAKE) -C src
$(MAKE) -C examples
# Build the help files (with Doxygen)
help:
$(MAKE) -C src help
# Clean up the executable files
clean:
$(MAKE) -C src clean
$(MAKE) -C examples clean
# Install the executable, man page, and shared library
install:
$(MAKE) -C src
$(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/bin
$(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/lib
$(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/man
$(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/man/man1
$(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/include
$(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS_EXEC) src/voro++ $(PREFIX)/bin
$(INSTALL) $(IFLAGS) man/voro++.1 $(PREFIX)/man/man1
$(INSTALL) $(IFLAGS) src/libvoro++.a $(PREFIX)/lib
$(INSTALL) $(IFLAGS) src/voro++.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/c_loops.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/cell.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/common.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/config.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/container.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/container_prd.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/rad_option.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/pre_container.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/unitcell.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/v_base.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/v_compute.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/wall.hh $(PREFIX)/include/voro++
$(INSTALL) $(IFLAGS) src/worklist.hh $(PREFIX)/include/voro++
# Uninstall the executable, man page, and shared library
uninstall:
rm -f $(PREFIX)/bin/voro++
rm -f $(PREFIX)/man/man1/voro++.1
rm -f $(PREFIX)/lib/libvoro++.a
rm -f $(PREFIX)/include/voro++/voro++.hh
rm -f $(PREFIX)/include/voro++/c_loops.hh
rm -f $(PREFIX)/include/voro++/cell.hh
rm -f $(PREFIX)/include/voro++/common.hh
rm -f $(PREFIX)/include/voro++/config.hh
rm -f $(PREFIX)/include/voro++/container.hh
rm -f $(PREFIX)/include/voro++/container_prd.hh
rm -f $(PREFIX)/include/voro++/pre_container.hh
rm -f $(PREFIX)/include/voro++/rad_option.hh
rm -f $(PREFIX)/include/voro++/unitcell.hh
rm -f $(PREFIX)/include/voro++/v_base.hh
rm -f $(PREFIX)/include/voro++/v_compute.hh
rm -f $(PREFIX)/include/voro++/wall.hh
rm -f $(PREFIX)/include/voro++/worklist.hh
rmdir $(PREFIX)/include/voro++