-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile.custom
28 lines (25 loc) · 1.7 KB
/
Makefile.custom
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
MOCK_COMMON_ARGS = -n --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
#help oldconfig: Uses the current config file as input to `make oldconfig` and
#help applies the results to the local copy.
oldconfig: $(SRPMFILE) config
$(MOCK) $(MOCK_COMMON_ARGS) --installdeps $(SRPMFILE)
$(MOCK) $(MOCK_COMMON_ARGS) --chroot 'rpmbuild -bp /builddir/build/SPECS/$(SPECFILE)'
$(MOCK) $(MOCK_COMMON_ARGS) --copyin $(filter-out %.rpm,$^) /builddir/build/BUILD/.config
$(MOCK) $(MOCK_COMMON_ARGS) --cwd=/builddir/build/BUILD --chroot 'mv .config linux-*/'
$(MOCK) $(MOCK_COMMON_ARGS) --cwd=/builddir/build/BUILD --shell 'make -C linux-* oldconfig'
$(MOCK) $(MOCK_COMMON_ARGS) --copyout /builddir/build/BUILD/linux-*/.config config
#help menuconfig: Uses the current config file as input to `make menuconfig` and
#help applies the results to the local copy.
menuconfig: $(SRPMFILE) config
$(MOCK) $(MOCK_COMMON_ARGS) --installdeps $(SRPMFILE)
$(MOCK) $(MOCK_COMMON_ARGS) --install ncurses-dev
$(MOCK) $(MOCK_COMMON_ARGS) --chroot 'rpmbuild -bp /builddir/build/SPECS/$(SPECFILE)'
$(MOCK) $(MOCK_COMMON_ARGS) --copyin $(filter-out %.rpm,$^) /builddir/build/BUILD/.config
$(MOCK) $(MOCK_COMMON_ARGS) --cwd=/builddir/build/BUILD --chroot 'mv .config linux-*/'
$(MOCK) $(MOCK_COMMON_ARGS) --cwd=/builddir/build/BUILD --shell 'make -C linux-* menuconfig'
$(MOCK) $(MOCK_COMMON_ARGS) --copyout /builddir/build/BUILD/linux-*/.config config
#help kdevelop: Download and extract the package sources and apply the clear Linux
#help patches on top of it using the git tool. You can use DESTDIR=target to
#help extrat to a specific target directory. i.e. "make develop DESTDIR=/tmp"
kdevelop:
@scripts/develop.sh $(SPECFILE) $(DESTDIR)