ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/GNUmakefile
Revision: 50
Committed: 2008-03-09T14:15:43-07:00 (17 years, 3 months ago) by douglas
File size: 721 byte(s)
Log Message:
Stupid Subversion!

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 50 targets := $(common) Audacious DashInterface GPS Music 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 douglas 50 all-DashInterface: all-Common all-Audacious all-GPS all-Music
27 douglas 47
28 douglas 50 all-Music: all-Common
29 douglas 47
30 douglas 22 all-SteeringWheelRemote: all-Common all-Audacious
31    
32 douglas 21 clean: $(clean)
33    
34 douglas 22 define clean-target
35     clean-$(1):
36     $(call recurse,$(1),clean)
37     endef
38    
39     $(foreach target,$(targets),$(eval $(call clean-target,$(target))))

Properties

Name Value
svn:keywords Id