| 1 |
# $Xorg: Makefile,v 1.5 2000/08/17 19:41:44 cpqbld Exp $ |
| 2 |
# $Id: Makefile,v 1.5 2005/12/14 23:41:52 alanc Exp $ |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
# $XFree86: xc/Makefile,v 3.28tsi Exp $ |
| 7 |
|
| 8 |
# Luna users will need to either run make as "make MAKE=make" |
| 9 |
# or add "MAKE = make" to this file. |
| 10 |
|
| 11 |
RELEASE = "Release $(shell cat ../VERSION)" |
| 12 |
SHELL = /bin/sh |
| 13 |
RM = rm -f |
| 14 |
MV = mv |
| 15 |
WORLDOPTS = |
| 16 |
WIN32WORLDOPTS = -i |
| 17 |
TOP = . |
| 18 |
CURRENT_DIR = . |
| 19 |
CONFIGSRC = $(TOP)/config |
| 20 |
IRULESRC = $(CONFIGSRC)/cf |
| 21 |
IMAKE = imake |
| 22 |
IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES) |
| 23 |
MAKE_OPTS = -f xmakefile |
| 24 |
MAKE_CMD = $(MAKE) $(MAKE_OPTS) |
| 25 |
|
| 26 |
all: |
| 27 |
@${MAKE} ${MAKE_OPTS} xmakefile-exists || $(MAKE) all-initial |
| 28 |
@${MAKE} ${MAKE_OPTS} $@ |
| 29 |
|
| 30 |
all-initial: |
| 31 |
@echo Please use make World, or on NT use nmake World.Win32. |
| 32 |
@echo |
| 33 |
@echo Read the release notes carefully before proceeding. |
| 34 |
@echo Do not name your log file make.log or it will be deleted. |
| 35 |
|
| 36 |
World: BuildEnv |
| 37 |
@echo "" |
| 38 |
@echo Building $(RELEASE). |
| 39 |
@echo "" |
| 40 |
@date |
| 41 |
@echo "" |
| 42 |
${MAKE} ${MAKE_OPTS} $(MFLAGS) $(WORLDOPTS) World |
| 43 |
@echo "" |
| 44 |
@date |
| 45 |
@echo "" |
| 46 |
@echo Full build of $(RELEASE) complete. |
| 47 |
@echo "" |
| 48 |
|
| 49 |
CleanEnv: SetupEnv |
| 50 |
${MAKE} ${MAKE_OPTS} -k clean |
| 51 |
rm -f $(IRULESRC)/date.def; echo "" > $(IRULESRC)/date.def; |
| 52 |
|
| 53 |
SetupEnv: xmakefile VerifyOS Makefiles |
| 54 |
|
| 55 |
BuildEnv: SetupEnv BuildIncludes BuildDependsOnly |
| 56 |
|
| 57 |
BuildIncludes: SetupEnv includes |
| 58 |
|
| 59 |
BuildDependsOnly: SetupEnv depend |
| 60 |
|
| 61 |
Makefile:: |
| 62 |
$(MAKE) $(MFLAGS) xmakefile |
| 63 |
.PRECIOUS: Makefile |
| 64 |
|
| 65 |
xmakefile: |
| 66 |
if [ -f xmakefile ]; then \ |
| 67 |
set -x; \ |
| 68 |
$(RM) xmakefile.bak; \ |
| 69 |
$(MV) xmakefile xmakefile.bak; \ |
| 70 |
else \ |
| 71 |
exit 0; \ |
| 72 |
fi |
| 73 |
which $(IMAKE) 1>/dev/null && $(IMAKE_CMD) $(MFLAGS) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) |
| 74 |
|
| 75 |
# don't allow any default rules in this Makefile |
| 76 |
.SUFFIXES: |
| 77 |
# quiet "make" programs that display a message if suffix list empty |
| 78 |
.SUFFIXES: .Dummy |
| 79 |
|
| 80 |
# a copy of every rule that might be invoked at top level |
| 81 |
|
| 82 |
clean: CleanEnv |
| 83 |
|
| 84 |
dangerous_strip_clean: xmakefile |
| 85 |
${MAKE} ${MAKE_OPTS} $@ |
| 86 |
|
| 87 |
distclean: clean |
| 88 |
-${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 89 |
find config programs include -type f -name Makefile | while read makefile; do rm -f $$makefile; done |
| 90 |
$(RM) xmakefile |
| 91 |
|
| 92 |
depend: xmakefile |
| 93 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 94 |
|
| 95 |
Everything: SetupEnv |
| 96 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 97 |
|
| 98 |
external.ln: xmakefile |
| 99 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 100 |
|
| 101 |
includes: xmakefile VerifyOS Makefiles |
| 102 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 103 |
|
| 104 |
install.sdk: SetupEnv |
| 105 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 106 |
|
| 107 |
install.ln: SetupEnv |
| 108 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 109 |
|
| 110 |
install.man: SetupEnv |
| 111 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 112 |
|
| 113 |
install: SetupEnv |
| 114 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 115 |
|
| 116 |
Makefiles: xmakefile VerifyOS |
| 117 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 118 |
|
| 119 |
man_keywords: SetupEnv |
| 120 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 121 |
|
| 122 |
tags: xmakefile |
| 123 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |
| 124 |
|
| 125 |
VerifyOS: xmakefile |
| 126 |
${MAKE} ${MAKE_OPTS} ${MFLAGS} $@ |