Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jberryman
GHC
Commits
a0813f93
Commit
a0813f93
authored
Apr 03, 2001
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2001-04-03 15:38:51 by simonmar]
set SUBDIRS from ProjectsToBuild (as suggested by Marcin).
parent
f02c7321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Makefile
Makefile
+6
-6
No files found.
Makefile
View file @
a0813f93
...
...
@@ -10,13 +10,13 @@ TOP=.
include
$(TOP)/mk/boilerplate.mk
# find the projects that actually exist...
SUBDIRS
=
$(
filter
$(
patsubst
%/, %,
$(
wildcard
*
/
))
,
$(AllProjects)
)
ProjectsThatExist
=
$(
filter
$(
patsubst
%/, %,
$(
wildcard
*
/
))
,
$(AllProjects)
)
# and filter only those that the user requested, if necessary
ifeq
"$(ProjectsToBuild)" ""
Projects
=
$(SUBDIRS
)
SUBDIRS
=
$(ProjectsThatExist
)
else
Projects
=
$(
filter
$(ProjectsToBuild)
,
$(SUBDIRS
)
)
SUBDIRS
=
$(
filter
$(ProjectsToBuild)
,
$(ProjectsThatExist
)
)
endif
ifneq
"$(Project)" ""
...
...
@@ -258,7 +258,7 @@ SRC_DIST_DIR=$(shell pwd)/$(SRC_DIST_NAME)
#
# Files to include in source distributions
#
SRC_DIST_DIRS
+=
docs distrib
$(
Projects
)
SRC_DIST_DIRS
+=
docs distrib
$(
SUBDIRS
)
SRC_DIST_FILES
+=
\
configure.in config.guess config.sub configure
\
aclocal.m4 acconfig.h README Makefile install-sh
\
...
...
@@ -302,7 +302,7 @@ MAINTAINER_CLEAN_FILES += configure
all
::
@
case
'
${MFLAGS}
'
in
*
-[ik]
*
)
x_on_err
=
0
;;
*
-r
*
[
ik]
*
)
x_on_err
=
0
;;
*
)
x_on_err
=
1
;;
esac
;
\
for
i
in
$(
Projects
)
;
do
\
for
i
in
$(
SUBDIRS
)
;
do
\
if
[
-d
$$
i
]
;
then
\
$(MAKE)
-C
$$
i boot all
;
\
if
[
$$
?
-eq
0
-o
$$
x_on_err
-eq
0
]
;
then
true
;
else
exit
1
;
fi
;
\
...
...
@@ -315,7 +315,7 @@ boot ::
install
::
@
case
'
${MFLAGS}
'
in
*
-[ik]
*
)
x_on_err
=
0
;;
*
-r
*
[
ik]
*
)
x_on_err
=
0
;;
*
)
x_on_err
=
1
;;
esac
;
\
for
i
in
$(
filter-out
$(ProjectsDontInstall)
,
$(
Projects
)
)
;
do
\
for
i
in
$(
filter-out
$(ProjectsDontInstall)
,
$(
SUBDIRS
)
)
;
do
\
if
[
-d
$$
i
]
;
then
\
$(MAKE)
-C
$$
i
install
;
\
if
[
$$
?
-eq
0
-o
$$
x_on_err
-eq
0
]
;
then
true
;
else
exit
1
;
fi
;
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment