ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/Kernel/GNUmakefile
Revision: 1124
Committed: 2008-11-29T00:58:02-08:00 (16 years, 7 months ago) by douglas
File size: 441 byte(s)
Log Message:
TFTP boot stuff.

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 douglas 1124 install_kernels := $(foreach kernel,$(kernels),install_$(dir $(kernel))_$(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 985 install: all $(install_kernels)
15 douglas 816
16 douglas 984 define install_kernel
17 douglas 1124 install_$(dir $(1))_$(notdir $(1)):
18 douglas 984 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