summaryrefslogtreecommitdiffstats
path: root/modules/infest/Makefile
blob: ec5836a3bf73238c813f2c5d8ac4fa457e64be8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

ifndef patch_file
patch_file := /etc/Verkrebsung.patch
endif

ifndef patch_flags
patch_flags :=
endif

.PHONY: infest dry-run
infest: $(patch_file)
	unset POSIXLY_CORRECT; patch $(patch_flags) -fNp0 < $<

$(patch_file): bin/make-patch
	$< >$@

dry-run:
	 make patch_file=/tmp/krebs-infest-dry-run.patch patch_flags=--dry-run