1 # Copyright © 2003, The AROS Development Team. All rights reserved.
4 include $(TOP)/config/make.cfg
6 FILES := main aboutaros locale
7 EXEDIR := $(AROS_SYSTEM)
9 USER_CFLAGS := -DADATE="\"$(shell date '+%d.%m.%Y')\""
10 USER_INCLUDES = -I$(TOP)/$(CURDIR) -I$(SRCDIR)/$(CURDIR)
12 #MM- workbench-system : workbench-system-aboutaros
13 #MM workbench-system-aboutaros : includes linklibs \
14 #MM workbench-system-aboutaros-catalogs \
15 #MM workbench-system-aboutaros-generated
17 #MM- clean : aboutaros-clean
19 %build_prog mmake=workbench-system-aboutaros \
20 progname=About targetdir=$(EXEDIR) \
21 files=$(FILES) uselibs="arossupport amiga arosc m"
24 GENERATED := $(TOP)/$(CURDIR)/authors.h $(TOP)/$(CURDIR)/sponsors.h $(TOP)/$(CURDIR)/acknowledgements.h $(TOP)/$(CURDIR)/svnrev.h
27 workbench-system-aboutaros-generated : $(GENERATED)
29 $(TOP)/$(CURDIR)/authors.h : $(SRCDIR)/$(CURDIR)/db/credits $(SRCDIR)/$(CURDIR)/scripts/authors2header.py
30 @$(ECHO) Generating $@
31 @$(PYTHON) $(SRCDIR)/$(CURDIR)/scripts/authors2header.py <$< >$@
33 $(TOP)/$(CURDIR)/sponsors.h : $(SRCDIR)/$(CURDIR)/db/sponsors $(SRCDIR)/$(CURDIR)/scripts/sponsors2header.py
34 @$(ECHO) Generating $@
35 @$(PYTHON) $(SRCDIR)/$(CURDIR)/scripts/sponsors2header.py <$< >$@
37 $(TOP)/$(CURDIR)/acknowledgements.h : $(SRCDIR)/ACKNOWLEDGEMENTS $(SRCDIR)/$(CURDIR)/scripts/acknowledgements2header.py
38 @$(ECHO) Generating $@
39 @$(PYTHON) $(SRCDIR)/$(CURDIR)/scripts/acknowledgements2header.py <$< >$@
41 .PHONY : $(TOP)/$(CURDIR)/svnrev.h
43 $(TOP)/$(CURDIR)/svnrev.h :
44 - $(ECHO) '#define SVNREV "'`svnversion $(SRCDIR)`'"' >$(TOP)/$(CURDIR)/svnrev.h