Reset platonic code.
[voro++.git] / trunk / Makefile
blob01675af871a5ea3ddb14ce58dff25a9def5499df
1 # Voro++ makefile
3 # Author : Chris H. Rycroft (LBL / UC Berkeley)
4 # Email : chr@alum.mit.edu
5 # Date : August 30th 2011
7 # Tell make that these are phony targets
8 .PHONY: all help clean install uninstall
10 include config.mk
12 # Build all of the executable files
13 all:
14 $(MAKE) -C src
15 $(MAKE) -C examples
17 # Build the help files (with Doxygen)
18 help:
19 $(MAKE) -C src help
21 # Clean up the executable files
22 clean:
23 $(MAKE) -C src clean
24 $(MAKE) -C examples clean
26 # Install the executable, man page, and shared library
27 install:
28 $(MAKE) -C src
29 $(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/bin
30 $(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/lib
31 $(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/man
32 $(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/man/man1
33 $(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/include
34 $(INSTALL) -d $(IFLAGS_EXEC) $(PREFIX)/include/voro++
35 $(INSTALL) $(IFLAGS_EXEC) src/voro++ $(PREFIX)/bin
36 $(INSTALL) $(IFLAGS) man/voro++.1 $(PREFIX)/man/man1
37 $(INSTALL) $(IFLAGS) src/libvoro++.a $(PREFIX)/lib
38 $(INSTALL) $(IFLAGS) src/voro++.hh $(PREFIX)/include/voro++
39 $(INSTALL) $(IFLAGS) src/c_loops.hh $(PREFIX)/include/voro++
40 $(INSTALL) $(IFLAGS) src/cell.hh $(PREFIX)/include/voro++
41 $(INSTALL) $(IFLAGS) src/common.hh $(PREFIX)/include/voro++
42 $(INSTALL) $(IFLAGS) src/config.hh $(PREFIX)/include/voro++
43 $(INSTALL) $(IFLAGS) src/container.hh $(PREFIX)/include/voro++
44 $(INSTALL) $(IFLAGS) src/container_prd.hh $(PREFIX)/include/voro++
45 $(INSTALL) $(IFLAGS) src/rad_option.hh $(PREFIX)/include/voro++
46 $(INSTALL) $(IFLAGS) src/pre_container.hh $(PREFIX)/include/voro++
47 $(INSTALL) $(IFLAGS) src/unitcell.hh $(PREFIX)/include/voro++
48 $(INSTALL) $(IFLAGS) src/v_base.hh $(PREFIX)/include/voro++
49 $(INSTALL) $(IFLAGS) src/v_compute.hh $(PREFIX)/include/voro++
50 $(INSTALL) $(IFLAGS) src/wall.hh $(PREFIX)/include/voro++
51 $(INSTALL) $(IFLAGS) src/worklist.hh $(PREFIX)/include/voro++
53 # Uninstall the executable, man page, and shared library
54 uninstall:
55 rm -f $(PREFIX)/bin/voro++
56 rm -f $(PREFIX)/man/man1/voro++.1
57 rm -f $(PREFIX)/lib/libvoro++.a
58 rm -f $(PREFIX)/include/voro++/voro++.hh
59 rm -f $(PREFIX)/include/voro++/c_loops.hh
60 rm -f $(PREFIX)/include/voro++/cell.hh
61 rm -f $(PREFIX)/include/voro++/common.hh
62 rm -f $(PREFIX)/include/voro++/config.hh
63 rm -f $(PREFIX)/include/voro++/container.hh
64 rm -f $(PREFIX)/include/voro++/container_prd.hh
65 rm -f $(PREFIX)/include/voro++/pre_container.hh
66 rm -f $(PREFIX)/include/voro++/rad_option.hh
67 rm -f $(PREFIX)/include/voro++/unitcell.hh
68 rm -f $(PREFIX)/include/voro++/v_base.hh
69 rm -f $(PREFIX)/include/voro++/v_compute.hh
70 rm -f $(PREFIX)/include/voro++/wall.hh
71 rm -f $(PREFIX)/include/voro++/worklist.hh
72 rmdir $(PREFIX)/include/voro++