1 #/**************************************************************************
2 # * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 # * Author: Artur Szostak *
5 # * Email: artur@alice.phy.uct.ac.za *
7 # * Permission to use, copy, modify and distribute this software and its *
8 # * documentation strictly for non-commercial purposes is hereby granted *
9 # * without fee, provided that the above copyright notice appears in all *
10 # * copies and that both the copyright notice and this permission notice *
11 # * appear in the supporting documentation. The authors make no claims *
12 # * about the suitability of this software for any purpose. It is *
13 # * provided "as is" without express or implied warranty. *
14 # **************************************************************************/
16 include build/config.mk
18 .PHONY : all debug verbose depend doc clean clean-all incmajor incminor incbuild dist debug-dist
20 MODULES = $(wildcard $(BUILD_DIR)/*.module.mk)
22 ############################################################################
25 $(VERBOSE) for MODULE in $(MODULES) ; do $(MAKE) -f $$MODULE ; done
27 ############################################################################
30 @echo "---------- Entering debug build mode ----------"
31 @$(MAKE) DEBUGGING=ON all
33 ############################################################################
36 @echo "---------- Entering verbose build mode ----------"
37 @$(MAKE) VERBOSE_MAKE=ON all
39 ############################################################################
42 $(VERBOSE) for MODULE in $(MODULES) ; do $(MAKE) -f $$MODULE depend ; done
44 ############################################################################
48 @echo "making source code documentation"
50 $(VERBOSE) mkdir -p srcdoc/html/
51 $(VERBOSE) cp doc/doxygen/footer.html doc/doxygen/header.html doc/doxygen/style.css srcdoc/html/
52 $(VERBOSE) doxygen doc/doxygen/dHLTconfig
54 ############################################################################
58 @echo "cleaning up $(OUTPUT_DIR)"
60 $(VERBOSE) rm -f -r $(OUTPUT_DIR)
62 ############################################################################
66 @echo "cleaning up $(BIN_DIR)"
68 $(VERBOSE) rm -f -r $(BIN_DIR)
70 @echo "cleaning up $(LIB_DIR)"
72 $(VERBOSE) rm -f -r $(LIB_DIR)
74 @echo "cleaning up $(INCLUDE_DIR)"
76 $(VERBOSE) rm -f -r $(INCLUDE_DIR)
77 $(VERBOSE) rm -f $(TOP_DIR)/core $(BIN_DIR)/core $(MACRO_DIR)/core
79 ############################################################################
83 @echo Incrementing major version number.
85 $(VERBOSE) let NUM=`cat $(SRC_DIR)/Version/major.number`+1 && echo $$NUM > $(SRC_DIR)/Version/major.number
87 ############################################################################
91 @echo Incrementing minor version number.
93 $(VERBOSE) let NUM=`cat $(SRC_DIR)/Version/minor.number`+1 && echo $$NUM > $(SRC_DIR)/Version/minor.number
95 ############################################################################
98 $(VERBOSE) for MODULE in $(MODULES) ; do \
99 $(MAKE) -q -f $$MODULE ; \
100 if test $$? -eq 1 ; then \
101 $(MAKE) -f $$MODULE incbuild ; \
105 ############################################################################
108 @echo "Making distribution $(DISTRIBUTION_FILE)"
109 $(VERBOSE) mkdir -p $(DISTRIBUTION_SUBDIR)
110 $(VERBOSE) for MODULE in $(MODULES) ; do $(MAKE) -f $$MODULE create-distrib ; done
111 $(VERBOSE) cp -r $(INCLUDE_DIR) $(DISTRIBUTION_SUBDIR)/
112 $(VERBOSE) cd $(DISTRIBUTION_DIR) && tar -czf $(TOP_DIR)/$(DISTRIBUTION_FILE) $(DISTRIBUTION_DIRNAME)
114 ############################################################################
117 @$(MAKE) DEBUGGING=ON dist