blob: c07266fd6fdc790ed53ea458bc23b34ae6a01a97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#!/bin/bash
#
# This script serves following purpose:
#
# 1. It generates native version information by querying
# automerger maintained database to see where src/include
# came from
# 2. For select components, as listed in compvers.sh
# it generates component version files
#
# Copyright 2005, Broadcom, Inc.
#
# $Id: Makefile 241702 2011-02-19 00:41:03Z automrgr $
#
SRCBASE := ..
TARGETS := epivers.h
ifdef VERBOSE
export VERBOSE
endif
all release: epivers compvers
# Generate epivers.h for native branch version
epivers:
bash epivers.sh
# Generate epivers.h for native branch version
compvers:
@if [ -s "compvers.sh" ]; then \
echo "Generating component versions, if any"; \
bash compvers.sh; \
else \
echo "Skipping component version generation"; \
fi
# Generate epivers.h for native branch version
clean_compvers:
@if [ -s "compvers.sh" ]; then \
echo "bash compvers.sh clean"; \
bash compvers.sh clean; \
else \
echo "Skipping component version clean"; \
fi
clean:
rm -f $(TARGETS) *.prev
clean_all: clean clean_compvers
.PHONY: all release clean epivers compvers clean_compvers
|