ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/GNUmakefile
Revision: 23
Committed: 2008-02-08T07:13:30-08:00 (14 years, 7 months ago) by douglas
File size: 682 byte(s)
Log Message:
More improvements; modularization!

File Contents

# User Rev Content
1 douglas 2 # Truck Computer Dooom!
2     #
3     # Douglas Thrift
4     #
5     # $Id$
6    
7 douglas 21 common := Common
8 douglas 15
9 douglas 17 include $(common)/common.mk
10 douglas 2
11 douglas 23 targets := $(common) Audacious DashInterface GPS SteeringWheelRemote
12 douglas 21 all := $(patsubst %, all-%, $(targets))
13     clean := $(patsubst %, clean-%, $(targets))
14 douglas 2
15 douglas 21 .PHONY: all $(all) clean $(clean)
16 douglas 2
17 douglas 22 all: $(all)
18 douglas 2
19 douglas 22 define all-target
20     all-$(1):
21     $(call recurse,$(1))
22     endef
23 douglas 21
24 douglas 22 $(foreach target,$(targets),$(eval $(call all-target,$(target))))
25    
26     all-SteeringWheelRemote: all-Common all-Audacious
27    
28 douglas 23 all-DashInterface: all-Common all-Audacious all-GPS
29 douglas 22
30 douglas 21 clean: $(clean)
31    
32 douglas 22 define clean-target
33     clean-$(1):
34     $(call recurse,$(1),clean)
35     endef
36    
37     $(foreach target,$(targets),$(eval $(call clean-target,$(target))))

Properties

Name Value
svn:keywords Id