aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs/Rules.mk
blob: 49ef8fe21dcdc4946a4e325d83dd6402c45fc49b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
include Config.mk

export DESTDIR

ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*))
ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse))

%-install:
	$(MAKE) -f buildconfigs/mk.$* build

%-dist: DESTDIR=$(DISTDIR)/install
%-dist: %-install
	@: # do nothing

# Legacy dist target
%-build: %-dist
	@: # do nothing

%-prep: DESTDIR=$(DISTDIR)/install
%-prep:
	$(MAKE) -f buildconfigs/mk.$* prep

%-config: DESTDIR=$(DISTDIR)/install
%-config:
	$(MAKE) -f buildconfigs/mk.$* config

%-delete:
	$(MAKE) -f buildconfigs/mk.$* delete

%-clean:
	$(MAKE) -f buildconfigs/mk.$* clean

%.patch:
	$(MAKE) -f buildconfigs/mk.$* $@

%-mrproper:
	$(MAKE) -f buildconfigs/mk.$*-xen mrproper
	rm -rf pristine-$(*)* ref-$(*)*
	rm -rf $*-xen.patch

# never delete any intermediate files.
.SECONDARY: