summaryrefslogtreecommitdiff
path: root/scripts/Makefile
blob: c6d30437e2dbf0c7a391cb874c466d21266845e0 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

# always needed
# ---------------------------------------------------------------------------

# The following temporary rule will make sure that people's
# trees get updated to the right permissions, since patch(1)
# can't do it
CHMOD_FILES := docgen gen-all-syms kernel-doc mkcompile_h makelst

all: fixdep split-include $(CHMOD_FILES)

$(CHMOD_FILES): FORCE
	@chmod a+x $@

# xconfig
# ---------------------------------------------------------------------------

HEADER=header.tk
TAIL=tail.tk
# Previous versions always remade kconfig.tk because they always depended
# on soundscript.  This runs fairly fast, and I can't find all the
# Config.in files to depend on anyways.  So I'll force it to remake.

kconfig.tk: $(TOPDIR)/arch/$(ARCH)/config.in tkparse $(HEADER) $(TAIL) FORCE
	@echo '  Generating $@'
	@(                                                      \
	  if [ -f /usr/local/bin/wish ];	then            \
		echo '#!'"/usr/local/bin/wish -f";              \
	  else                                                  \
		echo '#!'"/usr/bin/wish -f";                    \
	  fi;                                                   \
	  cat $(HEADER);                                        \
	  ./tkparse < $<;                                       \
	  echo "set defaults \"arch/${ARCH}/defconfig\"";       \
	  echo "set ARCH \"${ARCH}\"";                          \
	  cat $(TAIL)                                           \
	) > $@
	chmod 755 $@

# DocBook stuff
# ---------------------------------------------------------------------------

doc-progs: docproc

# ---------------------------------------------------------------------------

.PHONY: lxdialog

lxdialog:
	$(MAKE) -C lxdialog all

# ---------------------------------------------------------------------------

host-progs := fixdep split-include docproc tkparse

tkparse-objs := tkparse.o tkcond.o tkgen.o

# fixdep is needed to compile other host programs

split-include docproc $(tkparse-objs) lxdialog: fixdep


include $(TOPDIR)/Rules.make