summaryrefslogtreecommitdiffstats
path: root/mig_test/rtl/Makefile
blob: 17336cd7df43291bcef7f90e7859da96b912501f (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
#
# $HeadURL: https://svn.fzd.de/repo/concast/FWF_Projects/FWF_Internals/FPGA/hw_sp601/bsp_zpuahb/rtl/Makefile $
# $Date$
# $Author$
# $Revision$
#


DATE = $(shell date +"%b %e %Y  %X")
DATELENGTH = $(shell expr length "$(DATE)")

SVNREV = $(shell svnversion | awk '{printf "%-21s", $$0}')
SVNLENGTH = $(shell expr length "$(SVNREV)")


all: timestamp.vhd
	
timestamp.vhd:
	@echo "updating $@ ($(DATE); $(SVNREV))"
	@rm -f $@
	@echo "package timestamp is"                                                       >> $@
	@echo ""                                                                           >> $@
	@echo "    constant version_time_c : string( 1 to $(DATELENGTH)) := \"$(DATE)\";"  >> $@
	@echo "    constant svnrevision_c  : string( 1 to $(SVNLENGTH)) := \"$(SVNREV)\";" >> $@
	@echo ""                                                                           >> $@
	@echo "end package timestamp;"                                                     >> $@


clean:
	rm timestamp.vhd
OpenPOWER on IntegriCloud