This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.devel
73 lines (55 loc) · 1.8 KB
/
Makefile.devel
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- makefile -*-
# This is the developer's makefile, not the user's makefile.
# Don't use it unless you know exactly what you do!
ACLOCAL := aclocal
AUTOCONF := autoconf
MKDIR := mkdir
RM := rm -f
TAR := tar
XZ := xz
ACLOCAL_FILE = aclocal.m4
CONFIGURE = configure
CONFIGURE_IN = configure.ac
VERSION ?= 0.0.0
ifneq (,)
This makefile requires GNU Make.
endif
.PHONY : all check-configures check dist
all : configure
$(ACLOCAL_FILE) : $(CONFIGURE_IN) $(wildcard m4/*.m4)
$(ACLOCAL) -I m4 --output=$@ && touch $@ && $(RM) -r -f autom4te.cache
AUTOCONF_FILES = $(ACLOCAL_FILE) $(wildcard m4/*.m4)
$(CONFIGURE) : $(CONFIGURE_IN) $(AUTOCONF_FILES)
$(AUTOCONF) && $(RM) -r -f autom4te.cache
check-configures : $(CONFIGURE)
set -e; for f in $(CONFIGURE); do bash -x -n $$f; done
check : all check-configures dist
./$(CONFIGURE) --with-linux-mirror=TSINGHUA
$(MAKE) all
$(MAKE) check
# Make a distribution tarball
CONFIG_FILES = busybox.config grub.cfg linux.config requirements.txt
DOC_FILES = LICENSE README.md
MAKE_FILES = m4 aclocal.m4 configure.ac configure Makefile.devel Makefile.in mirrors.mk.in
SOURCE_FILES = fdisk-input.txt genpicture.py loadpicture.py bb-patches
DIST_FILELIST = $(CONFIG_FILES) $(DOC_FILES) $(MAKE_FILES) $(SOURCE_FILES)
dist : all
$(RM) -r -f minimal-linux-$(VERSION)
$(MKDIR) -p minimal-linux-$(VERSION)
cp -r $(DIST_FILELIST) minimal-linux-$(VERSION)
$(TAR) -cvf minimal-linux-$(VERSION).tar minimal-linux-$(VERSION)
$(XZ) -9 -f minimal-linux-$(VERSION).tar
clean :
if test -f Makefile; then $(MAKE) totally-clean; fi
$(RM) -r -f *.tar
$(RM) -r -f *.xz
$(RM) -r -f minimal-linux-$(VERSION)
$(RM) -f $(ACLOCAL_FILE)
$(RM) -f $(CONFIGURE)
$(RM) -f $(CONFIGURE)~
$(RM) -f autom4te.cache
$(RM) -f config.log
$(RM) -f config.status
$(RM) -f fs
$(RM) -f Makefile
$(RM) -f mirrors.mk