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

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