Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fbelt
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
fbelt
Commits
a116cf61
Commit
a116cf61
authored
4 years ago
by
Lorenzo Pivetta
Browse files
Options
Downloads
Patches
Plain Diff
Update Makefile
parent
d4a0d475
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+2
-1
2 additions, 1 deletion
Makefile
with
2 additions
and
1 deletion
Makefile
+
2
−
1
View file @
a116cf61
...
...
@@ -2,11 +2,12 @@ NAME = fbelt-srv
MAIN
=
fbelt.py
DIRNAME
=
$(
NAME:-srv
=
)
MODNAME
=
$(
MAIN:.py
=
)
PY_FILES
+=
$(
wildcard src/
*
.py
)
default
:
bin ${PY_FILES}
@
cp
${
PY_FILES
}
bin/
${
DIRNAME
}
@
echo
"#!/
bin/bash
\n
exec
${
DIRNAME
}
/
${
MAIN
}
"
>
bin/
${
NAME
}
@
echo
"#!/
usr/bin/env python
\n
import sys
\n
sys.path.append(sys.path[0]+'/
${
DIRNAME
}
')
\n
from
${
MODNAME
}
import main
\n
if __name__ == '__main__':
\n
main()
\n
"
>
bin/
${
NAME
}
@
chmod
+x bin/
${
NAME
}
bin/
${
DIRNAME
}
/
${
MAIN
}
bin
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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