Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
base
Commits
5f149c15
Commit
5f149c15
authored
4 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
MNT: Project specific data install target
parent
b472c089
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/common/rules.mk
+30
-5
30 additions, 5 deletions
config/common/rules.mk
config/common/vars.mk
+1
-0
1 addition, 0 deletions
config/common/vars.mk
with
31 additions
and
5 deletions
config/common/rules.mk
+
30
−
5
View file @
5f149c15
...
...
@@ -55,16 +55,16 @@ tclinstall:
pyinstall
:
@
echo
" "
@
echo
"Installing python scripts"
@
if
[
!
-d
${
dest_PYDIR
}
]
;
then
\
${
MKDIR
}
-p
${
dest_PYDIR
}
;
\
${
CHMOD
}
g+w
${
dest_PYDIR
}
;
\
@
if
[
!
-d
${
dest_PYDIR
}
/
${
PROJNAME
}
]
;
then
\
${
MKDIR
}
-p
${
dest_PYDIR
}
/
${
PROJNAME
}
;
\
${
CHMOD
}
g+w
${
dest_PYDIR
}
/
${
PROJNAME
}
;
\
fi
@
install_yn
=
no
;
\
for
pyfile
in
${
PYFILES
}
verylongdummyname
;
do
\
if
[
-f
$$
pyfile
]
;
then
\
install_yn
=
yes
;
\
${
INSTALL
}
-m
0775
$$
pyfile
${
dest_PYDIR
}
/
;
\
echo
${
INSTALL
}
-m
0775
$$
pyfile
${
dest_PYDIR
}
/
;
\
${
INSTALL
}
-m
0775
$$
pyfile
${
dest_PYDIR
}
/
${
PROJNAME
}
/
;
\
echo
${
INSTALL
}
-m
0775
$$
pyfile
${
dest_PYDIR
}
/
${
PROJNAME
}
/
;
\
fi
\
done
;
...
...
@@ -139,6 +139,31 @@ hdrinstall:
fi
;
\
done
datainstall
:
@
echo
" "
@
echo
"Installing data files"
@
if
[
!
-d
${
dest_DATADIR
}
]
;
then
\
${
MKDIR
}
-p
${
dest_DATADIR
}
;
\
${
CHMOD
}
g+w
${
dest_DATADIR
}
;
\
fi
@
if
[
!
-d
${
dest_DATADIR
}
/
${
PROJNAME
}
]
;
then
\
${
MKDIR
}
-p
${
dest_DATADIR
}
/
${
PROJNAME
}
;
\
${
CHMOD
}
g+w
${
dest_DATADIR
}
/
${
PROJNAME
}
;
\
fi
@
for
datafile
in
${
DATAFILES
}
verylongdummyname
;
do
\
if
[
-f
$$
datafile
]
;
then
\
echo
${
INSTALL
}
-m
0664
$$
datafile
${
dest_DATADIR
}
/
${
PROJNAME
}
/
;
\
${
INSTALL
}
-m
0664
$$
datafile
${
dest_DATADIR
}
/
${
PROJNAME
}
/
;
\
elif
[
-d
$$
datafile
]
;
then
\
echo
${
CP
}
-r
$$
datafile
${
dest_DATADIR
}
/
${
PROJNAME
}
/
;
\
${
CP
}
-r
$$
datafile
${
dest_DATADIR
}
/
${
PROJNAME
}
/
;
\
find
${
dest_DATADIR
}
/
${
PROJNAME
}
/
-type
d
-exec
chmod
0755
{}
\;
;
\
find
${
dest_DATADIR
}
/
${
PROJNAME
}
/
-type
f
-exec
chmod
0644
{}
\;
;
\
fi
;
\
done
insertcopyright
:
${
FSLCONFDIR
}
/common/insertcopyright
*
*
/
*
...
...
This diff is collapsed.
Click to expand it.
config/common/vars.mk
+
1
−
0
View file @
5f149c15
...
...
@@ -36,6 +36,7 @@ dest_BINDIR = ${DESTDIR}/bin
dest_TCLDIR
=
${
DESTDIR
}
/etc/fsl/tcl
dest_PYDIR
=
${
DESTDIR
}
/etc/fsl/python
dest_DOCDIR
=
${
DESTDIR
}
/etc/fsl/doc
dest_DATADIR
=
${
DESTDIR
}
/etc/fsl/data
# Standard header/library locations for compiling/linking
INCDIR
=
${
FSLDIR
}
/include
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment