source: src/Makefile.am@ aed262

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes
Last change on this file since aed262 was 7672284, checked in by Frederik Heber <heber@…>, 8 years ago

FIX: install target now works with multiple threads.

  • the problem when using "make -j8 install" was that automake's dependency tracking for pyMoleCuilder did not work. It works when it is given under lib_LTLIBRARIES but not with pyexec_LTLIBRARIES, although the other libs are given under LIBADD. I never got an answer to my mail on the forum.
  • therefore, I now circumvent the problem by building the pyMolecuilder module in a different folder that makes enters after it is down with compiling everything in src.
  • Note that somehow I cannot use $(top_srcdir) for the paths of the source modules but must give the path explicitly.
  • Also, this should now allow to use debuild with multiple threads.
  • Property mode set to 100644
File size: 15.5 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4MOSTLYCLEANFILES =
5lib_LTLIBRARIES =
6noinst_LTLIBRARIES =
7BUILT_SOURCES =
8bin_PROGRAMS =
9EXTRA_DIST =
10
11# libMolecuilder.la requires the libraries listed below
12
13include Helpers/Makefile.am
14include Shapes/Makefile.am
15include Tesselation/Makefile.am
16
17# then comes the library itself
18
19AM_LDFLAGS = -ldl ${BOOST_LDFLAGS} ${CodePatterns_LDFLAGS} ${JobMarket_LDFLAGS}
20AM_CPPFLAGS = \
21 -I$(top_srcdir)/src/unittests \
22 -I$(top_srcdir)/src/Actions \
23 -I$(top_srcdir)/src/UIElements \
24 -I$(top_srcdir)/ThirdParty/LinearAlgebra/src \
25 ${BOOST_CPPFLAGS} \
26 ${CodePatterns_CFLAGS}
27
28
29BONDSOURCE = \
30 Bond/bond.cpp \
31 Bond/bond_observable.cpp \
32 Bond/BondInfo.cpp \
33 Bond/GraphEdge.cpp
34
35BONDHEADER = \
36 Bond/bond.hpp \
37 Bond/bond_observable.hpp \
38 Bond/BondInfo.hpp \
39 Bond/GraphEdge.hpp
40
41DESCRIPTORSOURCE = \
42 Descriptors/AtomDescriptor.cpp \
43 Descriptors/AtomIdDescriptor.cpp \
44 Descriptors/AtomNameDescriptor.cpp \
45 Descriptors/AtomOfMoleculeDescriptor.cpp \
46 Descriptors/AtomOfMoleculeSelectionDescriptor.cpp \
47 Descriptors/AtomOrderDescriptor.cpp \
48 Descriptors/AtomSelectionDescriptor.cpp \
49 Descriptors/AtomShapeDescriptor.cpp \
50 Descriptors/AtomTypeDescriptor.cpp \
51 Descriptors/AtomsWithinDistanceOfDescriptor.cpp \
52 Descriptors/MoleculeDescriptor.cpp \
53 Descriptors/MoleculeFormulaDescriptor.cpp \
54 Descriptors/MoleculeIdDescriptor.cpp \
55 Descriptors/MoleculeNameDescriptor.cpp \
56 Descriptors/MoleculeOfAtomSelectionDescriptor.cpp \
57 Descriptors/MoleculeOrderDescriptor.cpp \
58 Descriptors/MoleculePtrDescriptor.cpp \
59 Descriptors/MoleculeSelectionDescriptor.cpp
60
61
62DESCRIPTORHEADER = \
63 Descriptors/AtomDescriptor.hpp \
64 Descriptors/AtomIdDescriptor.hpp \
65 Descriptors/AtomNameDescriptor.hpp \
66 Descriptors/AtomOfMoleculeDescriptor.hpp \
67 Descriptors/AtomOfMoleculeSelectionDescriptor.hpp \
68 Descriptors/AtomOrderDescriptor.hpp \
69 Descriptors/AtomSelectionDescriptor.hpp \
70 Descriptors/AtomShapeDescriptor.hpp \
71 Descriptors/AtomTypeDescriptor.hpp \
72 Descriptors/AtomsWithinDistanceOfDescriptor.hpp \
73 Descriptors/DescriptorBase.hpp \
74 Descriptors/MoleculeDescriptor.hpp \
75 Descriptors/MoleculeFormulaDescriptor.hpp \
76 Descriptors/MoleculeIdDescriptor.hpp \
77 Descriptors/MoleculeNameDescriptor.hpp \
78 Descriptors/MoleculeOfAtomSelectionDescriptor.hpp \
79 Descriptors/MoleculeOrderDescriptor.hpp \
80 Descriptors/MoleculePtrDescriptor.hpp \
81 Descriptors/MoleculeSelectionDescriptor.hpp \
82 Descriptors/SelectiveConstIterator.hpp \
83 Descriptors/SelectiveIterator.hpp
84
85DESCRIPTORIMPLHEADER = \
86 Descriptors/AtomDescriptor_impl.hpp \
87 Descriptors/AtomIdDescriptor_impl.hpp \
88 Descriptors/AtomNameDescriptor_impl.hpp \
89 Descriptors/AtomOfMoleculeDescriptor_impl.hpp \
90 Descriptors/AtomOfMoleculeSelectionDescriptor_impl.hpp \
91 Descriptors/AtomOrderDescriptor_impl.hpp \
92 Descriptors/AtomSelectionDescriptor_impl.hpp \
93 Descriptors/AtomShapeDescriptor_impl.hpp \
94 Descriptors/AtomTypeDescriptor_impl.hpp \
95 Descriptors/AtomsWithinDistanceOfDescriptor_impl.hpp \
96 Descriptors/DescriptorBase_impl.hpp \
97 Descriptors/MoleculeDescriptor_impl.hpp \
98 Descriptors/MoleculeFormulaDescriptor_impl.hpp \
99 Descriptors/MoleculeIdDescriptor_impl.hpp \
100 Descriptors/MoleculeNameDescriptor_impl.hpp \
101 Descriptors/MoleculeOfAtomSelectionDescriptor_impl.hpp \
102 Descriptors/MoleculeOrderDescriptor_impl.hpp \
103 Descriptors/MoleculePtrDescriptor_impl.hpp \
104 Descriptors/MoleculeSelectionDescriptor_impl.hpp \
105 Descriptors/SelectiveConstIterator_impl.hpp \
106 Descriptors/SelectiveIterator_impl.hpp
107
108DYNAMICSSOURCE = \
109 Dynamics/MinimiseConstrainedPotential.cpp
110
111DYNAMICSHEADER = \
112 Dynamics/AtomicForceManipulator.hpp \
113 Dynamics/ForceAnnealing.hpp \
114 Dynamics/LinearInterpolationBetweenSteps.hpp \
115 Dynamics/MinimiseConstrainedPotential.hpp \
116 Dynamics/OutputTemperature.hpp \
117 Dynamics/VerletForceIntegration.hpp
118
119THERMOSTATSOURCE = \
120 Thermostats/Berendsen.cpp \
121 Thermostats/GaussianThermostat.cpp \
122 Thermostats/Langevin.cpp \
123 Thermostats/NoseHoover.cpp \
124 Thermostats/NoThermostat.cpp \
125 Thermostats/Thermostat.cpp \
126 Thermostats/ThermoStatContainer.cpp \
127 Thermostats/Woodcock.cpp
128
129THERMOSTATHEADER = \
130 Thermostats/Berendsen.hpp \
131 Thermostats/GaussianThermostat.hpp \
132 Thermostats/Langevin.hpp \
133 Thermostats/NoseHoover.hpp \
134 Thermostats/NoThermostat.hpp \
135 Thermostats/Thermostat.hpp \
136 Thermostats/ThermoStatContainer.hpp \
137 Thermostats/Woodcock.hpp
138
139MOLECUILDERSOURCE = \
140 ${BONDSOURCE} \
141 ${DESCRIPTORSOURCE} \
142 ${DYNAMICSSOURCE} \
143 ${THERMOSTATSOURCE} \
144 Shapes/ShapeFactory.cpp \
145 AtomIdSet.cpp \
146 Box.cpp \
147 Box_BoundaryConditions.cpp \
148 config.cpp \
149 Formula.cpp \
150 MoleculeLeafClass.cpp \
151 MoleculeObserver.cpp \
152 molecule.cpp \
153 molecule_geometry.cpp \
154 molecule_graph.cpp \
155 UIElements/UIFactory.cpp \
156 version.c \
157 World.cpp \
158 WorldTime.cpp
159
160MOLECUILDERHEADER = \
161 ${BONDHEADER} \
162 ${DESCRIPTORHEADER} \
163 ${DESCRIPTORIMPLHEADER} \
164 ${DYNAMICSHEADER} \
165 ${THERMOSTATHEADER} \
166 Shapes/ShapeFactory.hpp \
167 AtomIdSet.hpp \
168 Box.hpp \
169 Box_BoundaryConditions.hpp \
170 config.hpp \
171 EntityObserver.hpp \
172 EntityObserver_impl.hpp \
173 Formula.hpp \
174 IdPool.hpp \
175 IdPool_impl.hpp \
176 IdPool_policy.hpp \
177 MoleculeLeafClass.hpp \
178 MoleculeObserver.hpp \
179 molecule.hpp \
180 types.hpp \
181 ThreadGuard.hpp \
182 UIElements/UIFactory.hpp \
183 version.h \
184 World.hpp \
185 World_calculations.hpp \
186 WorldTime.hpp
187
188lib_LTLIBRARIES += libMolecuilder.la
189libMolecuilder_la_includedir = $(includedir)/MoleCuilder/
190libMolecuilder_la_LDFLAGS = \
191 $(AM_LDFLAGS) \
192 $(BOOST_SYSTEM_LDFLAGS) \
193 $(BOOST_THREAD_LDFLAGS)
194libMolecuilder_la_LIBADD = \
195 libMolecuilderTesselation.la \
196 libMolecuilderShapes.la \
197 libMolecuilderHelpers.la \
198 $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
199 ${CodePatterns_LIBS} \
200 $(BOOST_SERIALIZATION_LIBS) \
201 $(BOOST_PROGRAM_OPTIONS_LIBS) \
202 $(BOOST_FILESYSTEM_LIBS) \
203 $(BOOST_SYSTEM_LIBS) \
204 $(BOOST_THREAD_LIBS)
205
206nobase_libMolecuilder_la_include_HEADERS = ${MOLECUILDERHEADER}
207
208## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
209## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
210## will therefore be treated as if it were literally part of the target name,
211## and the variable name derived from that.
212## The file extension .cc is recognized by Automake, and makes it produce
213## rules which invoke the C++ compiler to produce a libtool object file (.lo)
214## from each source file. Note that it is not necessary to list header files
215## which are already listed elsewhere in a _HEADERS variable assignment.
216libMolecuilder_la_SOURCES = ${MOLECUILDERSOURCE}
217
218## Instruct libtool to include ABI version information in the generated shared
219## library file (.so). The library ABI version is defined in configure.ac, so
220## that all version information is kept in one place.
221libMolecuilder_la_LDFLAGS += -version-info $(MOLECUILDER_SO_VERSION)
222
223## The generated configuration header is installed in its own subdirectory of
224## $(libdir). The reason for this is that the configuration information put
225## into this header file describes the target platform the installed library
226## has been built for. Thus the file must not be installed into a location
227## intended for architecture-independent files, as defined by the Filesystem
228## Hierarchy Standard (FHS).
229## The nodist_ prefix instructs Automake to not generate rules for including
230## the listed files in the distribution on 'make dist'. Files that are listed
231## in _HEADERS variables are normally included in the distribution, but the
232## configuration header file is generated at configure time and should not be
233## shipped with the source tarball.
234libMolecuilder_la_libincludedir = $(libdir)/MoleCuilder/include
235nodist_libMolecuilder_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
236
237## Install the generated pkg-config file (.pc) into the expected location for
238## architecture-dependent package configuration information. Occasionally,
239## pkg-config files are also used for architecture-independent data packages,
240## in which case the correct install location would be $(datadir)/pkgconfig.
241pkgconfigdir = $(libdir)/pkgconfig
242pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
243
244# then we compile the remainder of all other libraries, especially
245# libMolecuilderUI.la, which requires libMolecuilder.la on install
246
247include Actions/Makefile.am
248include Analysis/Makefile.am
249include Atom/Makefile.am
250include Element/Makefile.am
251include Filling/Makefile.am
252include Fragmentation/Makefile.am
253include Fragmentation/Automation/Makefile.am
254include Fragmentation/Summation/Containers/Makefile.am
255include Fragmentation/Summation/Converter/Makefile.am
256include Fragmentation/Summation/Makefile.am
257include Fragmentation/Summation/SetValues/Makefile.am
258include FunctionApproximation/Makefile.am
259include Graph/Makefile.am
260include Jobs/Makefile.am
261
262if CONDPYTHON
263include Python/Makefile.am
264endif
265
266include LinkedCell/Makefile.am
267include Parameters/Makefile.am
268include Parser/Makefile.am
269include Potentials/Makefile.am
270include RandomNumbers/Makefile.am
271include UIElements/Makefile.am
272
273bin_PROGRAMS += molecuilder
274EXTRA_PROGRAMS = unity
275
276
277extrastuffdir = $(datadir)/@PACKAGE@/data
278databasedir = $(extrastuffdir)/databases
279database_DATA = \
280 ${top_srcdir}/data/databases/*.db
281
282bondtabledir = $(extrastuffdir)/bondtables
283bondtable_DATA = \
284 ${top_srcdir}/data/bondtables/*.dat
285
286moleculedir = $(extrastuffdir)/molecules
287molecule_DATA = \
288 ${top_srcdir}/data/molecules/*.pdb
289
290
291molecuilder_CPPFLAGS = $(AM_CPPFLAGS)
292#molecuilder_CPPFLAGS += -DNO_CACHING
293molecuilder_LDFLAGS = \
294 $(AM_LDFLAGS) \
295 $(BOOST_FILESYSTEM_LDFLAGS) \
296 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
297 $(BOOST_RANDOM_LDFLAGS) \
298 $(BOOST_SYSTEM_LDFLAGS) \
299 $(BOOST_THREAD_LDFLAGS)
300molecuilder_SOURCES = \
301 builder.cpp \
302 builder_init.cpp \
303 builder_init.hpp \
304 Python/PythonScripting.hpp
305molecuilder_LDADD = \
306 libMolecuilder.la \
307 libMolecuilderUI.la
308molecuilder_LDADD += \
309 ${CodePatterns_LIBS} \
310 $(BOOST_THREAD_LIBS) \
311 $(BOOST_PROGRAM_OPTIONS_LIBS) \
312 $(BOOST_RANDOM_LIBS) \
313 $(BOOST_FILESYSTEM_LIBS) \
314 $(BOOST_SYSTEM_LIBS)
315
316if CONDPYTHON
317molecuilder_SOURCES += \
318 Actions/Action_impl_python.hpp \
319 Actions/GlobalListOfActions.hpp
320molecuilder_CPPFLAGS += -I$(PYTHON_INCLUDE_DIR)
321molecuilder_LDFLAGS += $(BOOST_PYTHON_LDFLAGS)
322molecuilder_LDADD += \
323 $(BOOST_PYTHON_LIBS) \
324 ${CodePatterns_LIBS} \
325 -l$(PYTHON_LIB)
326endif
327
328#Stuff for building the GUI using Qt
329if CONDQTGUI
330bin_PROGRAMS += molecuildergui
331molecuildergui_SOURCES = \
332 builder.cpp \
333 builder_init.cpp \
334 builder_init.hpp \
335 Python/PythonScripting.hpp
336molecuildergui_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_GUI_QT
337molecuildergui_LDFLAGS = \
338 $(AM_LDFLAGS) \
339 $(BOOST_FILESYSTEM_LDFLAGS) \
340 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) \
341 $(BOOST_SYSTEM_LDFLAGS) \
342 $(BOOST_THREAD_LDFLAGS)
343molecuildergui_LDADD = \
344 libMolecuilder.la \
345 libMolecuilderQtUI.la \
346 libMolecuilderUI.la
347molecuildergui_LDADD += \
348 ${CodePatterns_LIBS} \
349 $(BOOST_THREAD_LIBS) \
350 $(BOOST_PROGRAM_OPTIONS_LIBS) \
351 $(BOOST_RANDOM_LIBS) \
352 $(BOOST_FILESYSTEM_LIBS) \
353 $(BOOST_SYSTEM_LIBS) \
354 $(GUI_LIBS)
355
356if CONDPYTHON
357molecuildergui_SOURCES += \
358 Actions/Action_impl_python.hpp \
359 Actions/GlobalListOfActions.hpp
360molecuildergui_CPPFLAGS += -I$(PYTHON_INCLUDE_DIR)
361molecuildergui_LDFLAGS += $(BOOST_PYTHON_LDFLAGS)
362molecuildergui_LDADD += \
363 $(BOOST_PYTHON_LIBS) \
364 ${CodePatterns_LIBS} \
365 -l$(PYTHON_LIB)
366endif
367
368endif
369
370if CONDJOBMARKET
371CONTROLLERSOURCE = \
372 controller_MPQCCommandJob.cpp \
373 ControllerOptions_MPQCCommandJob.cpp
374
375CONTROLLERHEADER = \
376 controller_MPQCCommandJob.hpp \
377 ControllerOptions_MPQCCommandJob.hpp
378
379
380noinst_LTLIBRARIES += libFragmentationAutomationController.la
381libFragmentationAutomationController_la_includedir = $(includedir)/MoleCuilder/JobMarket
382nobase_libFragmentationAutomationController_la_include_HEADERS = $(CONTROLLERHEADER)
383libFragmentationAutomationController_la_SOURCES = $(CONTROLLERSOURCE)
384 libFragmentationAutomationController_la_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
385libFragmentationAutomationController_la_LIBADD = \
386 ${JobMarket_Controller_LIBS} \
387 $(JobMarket_LIBS)
388
389bin_PROGRAMS += molecuilder_controller molecuilder_poolworker molecuilder_server
390
391molecuilder_controller_SOURCES = controller.cpp controller_AddOn_MPQCCommandJob.cpp
392molecuilder_controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
393molecuilder_controller_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
394molecuilder_controller_LDADD = \
395 libFragmentationAutomationController.la \
396 libMolecuilderFragmentation_getFromKeysetStub.la \
397 libMolecuilderFragmentation.la \
398 libMolecuilderJobs.la \
399 libMolecuilderJobs_Work.la \
400 libMolecuilderFragmentationSummation.la \
401 libMolecuilderFragmentation_KeysetsContainer.la \
402 libMolecuilderHelpers.la \
403 $(JobMarket_Controller_LIBS) \
404 $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
405 $(BOOST_SERIALIZATION_LIBS) \
406 $(BOOST_PROGRAM_OPTIONS_LIBS) \
407 ${CodePatterns_LIBS}
408
409molecuilder_poolworker_SOURCES = poolworker.cpp
410molecuilder_poolworker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
411molecuilder_poolworker_CPPFLAGS = \
412 $(AM_CPPFLAGS) $(JobMarket_CFLAGS) \
413 -I$(top_builddir)/ThirdParty/mpqc_open/src/lib \
414 -I$(top_srcdir)/ThirdParty/mpqc_open/src/lib \
415 -I$(top_srcdir)/ThirdParty/mpqc_open/src/bin/mpqc
416
417molecuilder_poolworker_LDADD = \
418 libMolecuilderJobs.la \
419 libMolecuilderJobs_Work.la \
420 libMolecuilderFragmentationSummation.la \
421 ${JobMarket_PoolWorker_LIBS} \
422 $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
423 $(BOOST_SERIALIZATION_LIBS) \
424 $(BOOST_PROGRAM_OPTIONS_LIBS) \
425 ${CodePatterns_LIBS}
426
427molecuilder_server_SOURCES = Server.cpp
428molecuilder_server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
429molecuilder_server_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)
430molecuilder_server_LDADD = \
431 libMolecuilderJobs.la \
432 libMolecuilderJobs_Work.la \
433 libMolecuilderFragmentationSummation.la \
434 ${JobMarket_Server_LIBS} \
435 $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
436 $(BOOST_SERIALIZATION_LIBS) \
437 $(BOOST_PROGRAM_OPTIONS_LIBS) \
438 ${CodePatterns_LIBS}
439endif
440
441unity_SOURCES = unity.cpp
442unity_CPPFLAGS = $(AM_CPPFLAGS)
443unity_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
444unity_LDADD = \
445 ${CodePatterns_LIBS} \
446 $(BOOST_THREAD_LIBS) \
447 $(BOOST_PROGRAM_OPTIONS_LIBS) \
448 $(BOOST_RANDOM_LIBS) \
449 $(BOOST_FILESYSTEM_LIBS) \
450 $(BOOST_SYSTEM_LIBS)
451
452
453FORCE:
454$(srcdir)/.git-version: FORCE
455 @if (test -d $(top_srcdir)/.git && cd $(srcdir) \
456 && { git describe --dirty --always || git describe; } ) > .git-version-t 2>/dev/null \
457 && ! diff .git-version-t $(srcdir)/.git-version >/dev/null 2>&1; then \
458 mv -f .git-version-t $(srcdir)/.git-version; \
459 else \
460 rm -f .git-version-t; \
461 fi
462
463EXTRA_DIST += \
464 $(srcdir)/.git-version \
465 $(bondtable_DATA) \
466 $(database_DATA) \
467 $(molecule_DATA)
468
469$(srcdir)/version.c: $(srcdir)/.git-version
470 echo "const char *MOLECUILDERVERSION = \"$(PACKAGE_NAME) version "`cat $(srcdir)/.git-version`"\";" > $@
471
472
473unity.cpp: ${MOLECUILDERSOURCE} ${MOLECUILDERHEADER}
474 list='$(MOLECUILDERSOURCE)'; for file in $$list; do \
475 echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
476 done; \
477 subdirs='$(SUBDIRS)';for directory in $$subdirs; do\
478 olddir=$$PWD;\
479 cd $$directory && make unity.cpp;\
480 cd $$olddir;\
481 echo "#include \"$$directory/unity.cpp\"" >> unity.cpp;\
482 done;\
483 echo "#include \"$(srcdir)/builder.cpp\"" >> unity.cpp;
484 echo "#include \"$(srcdir)/version.c\"" >> unity.cpp;
485
486MOSTLYCLEANFILES += unity.cpp
487
Note: See TracBrowser for help on using the repository browser.