Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Stéphane Adjemian
dynare
Commits
d8ebdf91
Verified
Commit
d8ebdf91
authored
1 year ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Build system: add target for creating TAGS file for Emacs
Indexes all C++, Fortran and C files (including submodules).
parent
56ed5bff
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
meson.build
+20
-0
20 additions, 0 deletions
meson.build
with
21 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
d8ebdf91
...
...
@@ -31,4 +31,5 @@
build-doc
# Emacs stuff
TAGS
scripts/dynare.elc
This diff is collapsed.
Click to expand it.
meson.build
+
20
−
0
View file @
d8ebdf91
...
...
@@ -1825,3 +1825,23 @@ foreach t : mod_and_m_tests
test
(
test_name
,
test_driver_exe
,
args
:
test_driver_args
,
suite
:
test_suite
,
should_fail
:
t
.
get
(
'should_fail'
,
false
),
timeout
:
0
)
endforeach
### Developper stuff
## Tag file for Emacs (created in *source* directory)
git_exe
=
find_program
(
'git'
,
required
:
false
)
etags_exe
=
find_program
(
'etags'
,
required
:
false
)
if
git_exe
.
found
()
and
etags_exe
.
found
()
all_files
=
run_command
(
git_exe
,
[
'--git-dir=@0@/.git'
.
format
(
meson
.
project_source_root
()),
'ls-files'
,
'--recurse-submodules'
,
':/*.cc'
,
':/*.hh'
,
':/*.[fF]08'
,
':/*.[ch]'
],
check
:
true
)
all_files
=
files
(
all_files
.
stdout
().
split
())
custom_target
(
'tags'
,
output
:
'tags'
,
# Dummy output argument to make Meson happy
command
:
[
etags_exe
,
'-o'
,
'@0@/TAGS'
.
format
(
meson
.
project_source_root
())]
+
all_files
)
endif
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