-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
123 lines (108 loc) · 3.5 KB
/
Makefile
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# /usr/ports/Makefile Thu Feb 17 17:26:04 MEZ 1994 by Julian Stacey <[email protected]>
# Copyright Julian Stacey, Munich Dec. 93, Free Software, No Liability.
# For details see `Legalities' in /sys/Makefile.
# This Makefile still in development.
# Some comments detailing bugs are possibly no longer valid,
# but until I can manage to sup all of ports/ I can't check bugs are gone,
# so comments stay for a while as a warning to check.
MAKE_X_MIT ?= YES
world: display tools .configured objj _SUBDIRUSE all
@# _SUBDIRUSE with bsd.subdir_ports.mk does a make world in subdirs
@# most ports/_whatever_/Makefile(s) & bsd.subdir_ports.mk dont know to
@# do a make all after world, so its done here
@# (if it was in bsd.subdir_ports.mk it'd get done twice)
objj:
@# maybe later add some obj sym link creation here ?
tools:
# @#Making prerequisite tools.
# @echo "==={> $$i devel"
# cd devel ; make tools # devel/gmake --> /usr/gnu/bin/gmake
# @echo "<}=== $$i devel"
display:
@echo DESTDIR is ${DESTDIR}
@echo TOP is ${TOP}
@echo AVOID is ${AVOID}
@echo MAKE is ${MAKE}
@echo GMAKE is ${GMAKE}
@echo WAIT_OK is ${WAIT_OK}
@echo DESTDIR is ${DESTDIR}
@echo BINDIR is ${BINDIR}
@echo MAKE_X_MIT is ${MAKE_X_MIT}
# cleandist:
# .if !defined(NOCLEANDIR)
# @echo " Cleaning up the source tree, and rebuilding the obj tree"
# here=`pwd`; dest=/usr/obj/`echo $$here`; \
# cd $$dest; rm -rf ${SUBDIR}
# find . -name obj | xargs -n30 rm -rf
# @# Need a for loop as some SUBDIRS
# @# such as x-mit will be sym links.
# for i in ${SUBDIR} do
# if type dir $i && exist $i/Makefile
# find . -name obj -type l | xargs -n30 rm -rf
# done
# make cleandir
# make obj
# .endif
# all:
# done in bsd.subdir_ports.mk
after_all: # not called anywhere right now
.if !defined(AVOID)
@echo "Making packages that require special make labels."
-cd xview; ${MAKE} World # ar: notifydata.o: Too many open files
.endif
clean: _SUBDIRUSE
@# Need to do this find manually (how horrible):
-find shell/bash print/tex x11/urt -name \*.o -exec rm {} \;
-rm -f .configured
# pkg:
# done in bsd.subdir_ports.mk
.configured:
.if defined(NEVER_CLUDGE)
@# All this stuff will go, once a clean sup & make proves it
@# can be discarded
@echo "Started configuring."
# Start of some temporary nasty cludges for broken packages
@# for tcl-dp
-ln -s /usr/src/../ports /usr/ports
@echo Cludging for syscons_xtra
cd /usr/src/sys/sys ; ln -s ../i386/include/console.h console.h
@echo Cludging for rzsz
-mkdir /usr/local/man/cat1
-cd math/octave/octave; ./configure
-cd ilocal/wu-ftpd; chmod +x build; ./build bsd
-cd mail/elm; ./configure
# PENDING Rod says:
# If you don't do the configure you end up with elm thinking your
# domain is cdrom.com due to brain damaged code that compiles
# the domain name into the binary!
-mkdir /usr/ingres /usr/ingres/lib /usr/ingres/bin
@echo "Doing things that need a '${MAKE} World' first time (only)."
# Things that need a ${MAKE} World ever time (such as xview)
# are not done here.
@echo "Seeing if user news exists (wanted by inn)."
grep news /etc/passwd
@echo "Finished configuring."
.endif
-date > $@
# Directories each containing numerous packages
SUBDIR =
SUBDIR += audio
SUBDIR += comm
SUBDIR += db
SUBDIR += devel
SUBDIR += editor
SUBDIR += lang
SUBDIR += mail
SUBDIR += math
SUBDIR += net
SUBDIR += news
SUBDIR += print
SUBDIR += shell
SUBDIR += util
SUBDIR += x11
SUBDIR += game
.if defined(MAKE_X_MIT)
SUBDIR += x-mit # Done last, as Very big, & time consuming
.endif
.include <bsd.subdir_ports.mk>
# End of Makefile.