Get svn revision via 'svn info' or 'git log'.
[AROS.git] / workbench / system / AboutAROS / mmakefile.src
blob71ee2ce2d445a117d2c08a9e6d818d6bd11b725d
1 # Copyright © 2003, 2012, The AROS Development Team. All rights reserved.
2 # $Id$
4 include $(TOP)/config/make.cfg
6 FILES        := main aboutaros locale
7 EXEDIR       := $(AROS_SYSTEM)
9 SVNREV       := $(shell $(SRCDIR)/scripts/svnrev.sh $(SRCDIR))
10 USER_CFLAGS  := -DADATE="\"$(shell date '+%d.%m.%Y')\"" -DSVNREV=\"$(SVNREV)\"
11 USER_INCLUDES = -I$(TOP)/$(CURDIR) -I$(SRCDIR)/$(CURDIR)
13 #MM- workbench-system : workbench-system-aboutaros
14 #MM workbench-system-aboutaros : includes linklibs \
15 #MM     workbench-system-aboutaros-catalogs
17 #MM- clean :  aboutaros-clean
19 GENERATED = $(TOP)/$(CURDIR)/authors.h $(TOP)/$(CURDIR)/sponsors.h $(TOP)/$(CURDIR)/acknowledgements.h
21 $(GENDIR)/$(CURDIR)/aboutaros.d: $(GENERATED)
22 $(GENDIR)/$(CURDIR)/aboutaros.o: $(GENERATED)
24 %build_prog mmake=workbench-system-aboutaros \
25     progname=About targetdir=$(EXEDIR) \
26     files=$(FILES) uselibs="arossupport amiga arosc m"
28 $(TOP)/$(CURDIR)/authors.h : $(SRCDIR)/$(CURDIR)/db/credits $(SRCDIR)/$(CURDIR)/scripts/authors2header.py
29         @$(ECHO) Generating $@
30         @$(PYTHON) $(SRCDIR)/$(CURDIR)/scripts/authors2header.py <$< >$@
32 $(TOP)/$(CURDIR)/sponsors.h : $(SRCDIR)/$(CURDIR)/db/sponsors $(SRCDIR)/$(CURDIR)/scripts/sponsors2header.py
33         @$(ECHO) Generating $@
34         @$(PYTHON) $(SRCDIR)/$(CURDIR)/scripts/sponsors2header.py <$< >$@
36 $(TOP)/$(CURDIR)/acknowledgements.h : $(SRCDIR)/ACKNOWLEDGEMENTS $(SRCDIR)/$(CURDIR)/scripts/acknowledgements2header.py
37         @$(ECHO) Generating $@
38         @$(PYTHON) $(SRCDIR)/$(CURDIR)/scripts/acknowledgements2header.py <$< >$@
40 #MM
41 aboutaros-clean :
42         $(RM) $(GENERATED)
44 %common