blob: 9c00c090188b4491ce5587906327aa41fa60267a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#
# Boilerplate Makefile for building perl script that
# needs some configured constants prepended to it.
#
TOP=../..
include $(TOP)/mk/boilerplate.mk
boot :: all
PROG=mkdependC
CLEAN_FILES += $(PROG)
all::
$(RM) -f $(PROG)
echo '#!$(PERL)' >> $(PROG)
echo '$$DEFAULT_TMPDIR = "$(DEFAULT_TMPDIR)";' >> $(PROG)
echo '$$CPP = "$(CPP)";' >> $(PROG)
echo '$$BUILDPLATFORM = "$(BUILDPLATFORM)";' >> $(PROG)
cat $(PROG).prl >> $(PROG)
$(EXECUTABLE_FILE) $(PROG)
include $(TOP)/mk/target.mk
|