gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Merge #432 and #433
0 2 0
merge default
0 files changed with 3 insertions and 0 deletions:
↑ Collapse diff ↑
Ignore white space 1024 line context
1 1
EXTRA_DIST += \
2 2
	doc/Doxyfile.in \
3 3
	doc/DoxygenLayout.xml \
4 4
	doc/coding_style.dox \
5 5
	doc/dirs.dox \
6 6
	doc/groups.dox \
7 7
	doc/lgf.dox \
8 8
	doc/license.dox \
9 9
	doc/mainpage.dox \
10 10
	doc/migration.dox \
11 11
	doc/min_cost_flow.dox \
12 12
	doc/named-param.dox \
13 13
	doc/namespaces.dox \
14
	doc/references.bib \
15
	doc/template.h \
14 16
	doc/html \
15 17
	doc/CMakeLists.txt
16 18

	
17 19
DOC_EPS_IMAGES18 = \
18 20
	grid_graph.eps \
19 21
	nodeshape_0.eps \
20 22
	nodeshape_1.eps \
21 23
	nodeshape_2.eps \
22 24
	nodeshape_3.eps \
23 25
	nodeshape_4.eps
24 26

	
25 27
DOC_EPS_IMAGES27 = \
26 28
	bipartite_matching.eps \
27 29
	bipartite_partitions.eps \
28 30
	connected_components.eps \
29 31
	edge_biconnected_components.eps \
30 32
	matching.eps \
31 33
	node_biconnected_components.eps \
32 34
	planar.eps \
33 35
	strongly_connected_components.eps
34 36

	
35 37
DOC_EPS_IMAGES = \
36 38
	$(DOC_EPS_IMAGES18) \
37 39
	$(DOC_EPS_IMAGES27)
38 40

	
39 41
DOC_PNG_IMAGES = \
40 42
	$(DOC_EPS_IMAGES:%.eps=doc/gen-images/%.png)
41 43

	
42 44
EXTRA_DIST += $(DOC_EPS_IMAGES:%=doc/images/%)
43 45

	
44 46
doc/html:
45 47
	$(MAKE) $(AM_MAKEFLAGS) html
46 48

	
47 49
GS_COMMAND=gs -dNOPAUSE -dBATCH -q -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4
48 50

	
49 51
$(DOC_EPS_IMAGES18:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
50 52
	-mkdir doc/gen-images
51 53
	if test ${gs_found} = yes; then \
52 54
	  $(GS_COMMAND) -sDEVICE=pngalpha -r18 -sOutputFile=$@ $<; \
53 55
	else \
54 56
	  echo; \
55 57
	  echo "Ghostscript not found."; \
56 58
	  echo; \
57 59
	  exit 1; \
58 60
	fi
59 61

	
60 62
$(DOC_EPS_IMAGES27:%.eps=doc/gen-images/%.png): doc/gen-images/%.png: doc/images/%.eps
61 63
	-mkdir doc/gen-images
62 64
	if test ${gs_found} = yes; then \
63 65
	  $(GS_COMMAND) -sDEVICE=pngalpha -r27 -sOutputFile=$@ $<; \
64 66
	else \
65 67
	  echo; \
66 68
	  echo "Ghostscript not found."; \
67 69
	  echo; \
68 70
	  exit 1; \
69 71
	fi
70 72

	
71 73
references.dox: doc/references.bib
72 74
	if test ${python_found} = yes; then \
73 75
	  cd doc; \
74 76
	  python @abs_top_srcdir@/scripts/bib2dox.py @abs_top_builddir@/$< >$@; \
75 77
	  cd ..; \
76 78
	else \
77 79
	  echo; \
78 80
	  echo "Python not found."; \
79 81
	  echo; \
80 82
	  exit 1; \
81 83
	fi
82 84

	
83 85
html-local: $(DOC_PNG_IMAGES) references.dox
84 86
	if test ${doxygen_found} = yes; then \
85 87
	  cd doc; \
86 88
	  doxygen Doxyfile; \
87 89
	  cd ..; \
88 90
	else \
89 91
	  echo; \
90 92
	  echo "Doxygen not found."; \
91 93
	  echo; \
92 94
	  exit 1; \
93 95
	fi
94 96

	
95 97
clean-local:
96 98
	-rm -rf doc/html
97 99
	-rm -f doc/doxygen.log
98 100
	-rm -f $(DOC_PNG_IMAGES)
99 101
	-rm -rf doc/gen-images
100 102

	
101 103
update-external-tags:
102 104
	wget -O doc/libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag && \
103 105
	mv doc/libstdc++.tag.tmp doc/libstdc++.tag || \
104 106
	rm doc/libstdc++.tag.tmp
105 107

	
106 108
install-html-local: doc/html
107 109
	@$(NORMAL_INSTALL)
108 110
	$(mkinstalldirs) $(DESTDIR)$(htmldir)/html
109 111
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
110 112
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
111 113
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f"; \
112 114
	  $(INSTALL_DATA) $$p $(DESTDIR)$(htmldir)/html/$$f; \
113 115
	done
114 116

	
115 117
uninstall-local:
116 118
	@$(NORMAL_UNINSTALL)
117 119
	for p in doc/html/*.{html,css,png,map,gif,tag} ; do \
118 120
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
119 121
	  echo " rm -f $(DESTDIR)$(htmldir)/html/$$f"; \
120 122
	  rm -f $(DESTDIR)$(htmldir)/html/$$f; \
121 123
	done
122 124

	
123 125
.PHONY: update-external-tags
Ignore white space 6 line context
1 1
INCLUDE_DIRECTORIES(
2 2
  ${PROJECT_SOURCE_DIR}
3 3
  ${PROJECT_BINARY_DIR}
4 4
)
5 5

	
6 6
CONFIGURE_FILE(
7 7
  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
8 8
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
9 9
)
10 10

	
11 11
CONFIGURE_FILE(
12 12
  ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake
13 13
  ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
14 14
  @ONLY
15 15
)
16 16

	
17 17
SET(LEMON_SOURCES
18 18
  arg_parser.cc
19 19
  base.cc
20 20
  color.cc
21 21
  lp_base.cc
22 22
  lp_skeleton.cc
23 23
  random.cc
24 24
  bits/windows.cc
25 25
)
26 26

	
27 27
IF(LEMON_HAVE_GLPK)
28 28
  SET(LEMON_SOURCES ${LEMON_SOURCES} glpk.cc)
29 29
  INCLUDE_DIRECTORIES(${GLPK_INCLUDE_DIRS})
30 30
  IF(WIN32)
31 31
    INSTALL(FILES ${GLPK_BIN_DIR}/glpk.dll DESTINATION bin)
32 32
    INSTALL(FILES ${GLPK_BIN_DIR}/libltdl3.dll DESTINATION bin)
33 33
    INSTALL(FILES ${GLPK_BIN_DIR}/zlib1.dll DESTINATION bin)
34 34
  ENDIF()
35 35
ENDIF()
36 36

	
37 37
IF(LEMON_HAVE_CPLEX)
38 38
  SET(LEMON_SOURCES ${LEMON_SOURCES} cplex.cc)
39 39
  INCLUDE_DIRECTORIES(${CPLEX_INCLUDE_DIRS})
40 40
ENDIF()
41 41

	
42 42
IF(LEMON_HAVE_CLP)
43 43
  SET(LEMON_SOURCES ${LEMON_SOURCES} clp.cc)
44 44
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
45 45
ENDIF()
46 46

	
47 47
IF(LEMON_HAVE_CBC)
48 48
  SET(LEMON_SOURCES ${LEMON_SOURCES} cbc.cc)
49 49
  INCLUDE_DIRECTORIES(${COIN_INCLUDE_DIRS})
50 50
ENDIF()
51 51

	
52 52
ADD_LIBRARY(lemon ${LEMON_SOURCES})
53 53
IF(UNIX)
54 54
  SET_TARGET_PROPERTIES(lemon PROPERTIES OUTPUT_NAME emon)
55 55
ENDIF()
56 56

	
57 57
INSTALL(
58 58
  TARGETS lemon
59 59
  ARCHIVE DESTINATION lib
60
  LIBRARY DESTINATION lib
60 61
  COMPONENT library
61 62
)
62 63

	
63 64
INSTALL(
64 65
  DIRECTORY . bits concepts
65 66
  DESTINATION include/lemon
66 67
  COMPONENT headers
67 68
  FILES_MATCHING PATTERN "*.h"
68 69
)
69 70

	
70 71
INSTALL(
71 72
  FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h
72 73
  DESTINATION include/lemon
73 74
  COMPONENT headers
74 75
)
75 76

	
76 77
INSTALL(
77 78
  FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
78 79
  DESTINATION lib/pkgconfig
79 80
)
80 81

	
0 comments (0 inline)