source: tags/ms_r16q3/SOURCE_TOOLS/Makefile.commitbuild

Last change on this file was 7813, checked in by westram, 13 years ago

merge from dev [7753] [7754] [7755] [7762]

  • added new target 'build_CTARGET'
    • only do CTARGET if sth has been committed to the checked-out branch since the last call of any of the targets (CTARGET needs to be passed to make)
File size: 731 bytes
Line 
1
2MAIN_MAKE=$(MAKE) -C $(ARBHOME)
3
4REV_CHECK=$(ARBHOME)/SOURCE_TOOLS/rev_check.sh
5
6SUCCEEDED_REVISION:=$(shell $(REV_CHECK) last_succeeded)
7CURRENT_REVISION:=$(shell $(REV_CHECK) current)
8
9ifeq ($(SUCCEEDED_REVISION),$(CURRENT_REVISION))
10UPTODATE=1
11else
12UPTODATE=0
13endif
14
15
16build_CTARGET:
17ifeq ($(CTARGET),)
18        @echo "Error: You have to pass CTARGET to Makefile"
19        false
20else
21        @echo "Last success: '$(SUCCEEDED_REVISION)'"
22        @echo "Current rev:  '$(CURRENT_REVISION)'"
23#       @echo "Uptodate:     '$(UPTODATE)'"
24ifeq ($(UPTODATE),0)
25        @echo "Need to make '$(CTARGET)'"
26        +$(MAIN_MAKE) $(CTARGET)
27        $(REV_CHECK) set_succeeded
28else
29        @echo "Already did a successful '$(CTARGET)' for [$(SUCCEEDED_REVISION)]"
30endif
31endif
32
33reset:
34        $(REV_CHECK) reset
Note: See TracBrowser for help on using the repository browser.