|
Last change
on this file was
7813,
checked in by westram, 14 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 | |
|---|
| 2 | MAIN_MAKE=$(MAKE) -C $(ARBHOME) |
|---|
| 3 | |
|---|
| 4 | REV_CHECK=$(ARBHOME)/SOURCE_TOOLS/rev_check.sh |
|---|
| 5 | |
|---|
| 6 | SUCCEEDED_REVISION:=$(shell $(REV_CHECK) last_succeeded) |
|---|
| 7 | CURRENT_REVISION:=$(shell $(REV_CHECK) current) |
|---|
| 8 | |
|---|
| 9 | ifeq ($(SUCCEEDED_REVISION),$(CURRENT_REVISION)) |
|---|
| 10 | UPTODATE=1 |
|---|
| 11 | else |
|---|
| 12 | UPTODATE=0 |
|---|
| 13 | endif |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | build_CTARGET: |
|---|
| 17 | ifeq ($(CTARGET),) |
|---|
| 18 | @echo "Error: You have to pass CTARGET to Makefile" |
|---|
| 19 | false |
|---|
| 20 | else |
|---|
| 21 | @echo "Last success: '$(SUCCEEDED_REVISION)'" |
|---|
| 22 | @echo "Current rev: '$(CURRENT_REVISION)'" |
|---|
| 23 | # @echo "Uptodate: '$(UPTODATE)'" |
|---|
| 24 | ifeq ($(UPTODATE),0) |
|---|
| 25 | @echo "Need to make '$(CTARGET)'" |
|---|
| 26 | +$(MAIN_MAKE) $(CTARGET) |
|---|
| 27 | $(REV_CHECK) set_succeeded |
|---|
| 28 | else |
|---|
| 29 | @echo "Already did a successful '$(CTARGET)' for [$(SUCCEEDED_REVISION)]" |
|---|
| 30 | endif |
|---|
| 31 | endif |
|---|
| 32 | |
|---|
| 33 | reset: |
|---|
| 34 | $(REV_CHECK) reset |
|---|
Note: See
TracBrowser
for help on using the repository browser.