ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/Kernel/GNUmakefile
Revision: 984
Committed: 2008-01-18T13:13:27-08:00 (17 years, 5 months ago) by douglas
File size: 394 byte(s)
Log Message:
Woo!

File Contents

# User Rev Content
1 douglas 982 # Kernel
2 douglas 810 #
3     # Douglas Thrift
4     #
5     # $Id$
6    
7 douglas 984 kernels := $(wildcard */*)
8     install_kernels := $(foreach kernel,$(kernels),install_$(notdir $(kernel)))
9 douglas 982
10 douglas 984 .PHONY: all install $(install_kernels) clean
11 douglas 810
12 douglas 924 all:
13 douglas 812
14 douglas 984 install: all
15 douglas 816
16 douglas 984 define install_kernel
17     install_$(notdir $(1)):
18     ln -sf $(realpath $(1)) /usr/src/sys/$(dir $(1))conf
19     endef
20    
21     $(foreach kernel,$(kernels),$(eval $(call install_kernel,$(kernel))))
22    
23 douglas 816 clean:

Properties

Name Value
svn:keywords Id