Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pyMKcam
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
pyMKcam
Commits
765b22b5
Commit
765b22b5
authored
Jan 26, 2012
by
Paul Bonser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up Makefiles to work with git and reorganization changes
parent
7c3658bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
Makefile
Makefile
+11
-13
Makefile
man/Makefile
+1
-1
No files found.
Makefile
View file @
765b22b5
...
@@ -2,9 +2,7 @@
...
@@ -2,9 +2,7 @@
# from the subversion repository.
# from the subversion repository.
# use something like "VERSION=0.2 make" to override the VERSION on the command line
# use something like "VERSION=0.2 make" to override the VERSION on the command line
VERSION
?=
$(
shell
sed
-n
"s/^.*[
\t
]*VERSION[
\t
]*=[
\t
]*[
\"
']
\(
[^
\"
']*
\)
[
\"
'].*/
\1
/gp"
src/pycam/__init__.py
)
VERSION
?=
$(
shell
sed
-n
"s/^.*[
\t
]*VERSION[
\t
]*=[
\t
]*[
\"
']
\(
[^
\"
']*
\)
[
\"
'].*/
\1
/gp"
pycam/__init__.py
)
SVN_REPO_BASE
?=
$(
shell
svn info
--xml
2>/dev/null |
grep
"^<url>"
|
cut
-f
2
-d
">"
|
cut
-f
1
-d
"<"
)
SVK_REPO_BASE
?=
$(
shell
LANG
=
svk info 2>/dev/null|
grep
"^Depot Path:"
|
cut
-f
3-
-d
" "
)
REPO_TAGS
?=
https://pycam.svn.sourceforge.net/svnroot/pycam/tags
REPO_TAGS
?=
https://pycam.svn.sourceforge.net/svnroot/pycam/tags
RELEASE_PREFIX
?=
pycam-
RELEASE_PREFIX
?=
pycam-
ARCHIVE_DIR_RELATIVE
?=
release-archives
ARCHIVE_DIR_RELATIVE
?=
release-archives
...
@@ -21,7 +19,7 @@ DISTUTILS_PLAT_NAME = $(shell $(PYTHON_EXE) setup.py --help build_ext | grep -q
...
@@ -21,7 +19,7 @@ DISTUTILS_PLAT_NAME = $(shell $(PYTHON_EXE) setup.py --help build_ext | grep -q
# turn the destination directory into an absolute path
# turn the destination directory into an absolute path
ARCHIVE_DIR
:=
$(
shell
pwd
)
/
$(ARCHIVE_DIR_RELATIVE)
ARCHIVE_DIR
:=
$(
shell
pwd
)
/
$(ARCHIVE_DIR_RELATIVE)
.PHONY
:
zip tgz win32 clean dist
svn
_export upload create_archive_dir man
.PHONY
:
zip tgz win32 clean dist
git
_export upload create_archive_dir man
dist
:
zip tgz win32
dist
:
zip tgz win32
@
# remove the tmp directory when everything is done
@
# remove the tmp directory when everything is done
...
@@ -30,27 +28,27 @@ dist: zip tgz win32
...
@@ -30,27 +28,27 @@ dist: zip tgz win32
clean
:
clean
:
@
rm
-rf
"
$(EXPORT_DIR)
"
@
rm
-rf
"
$(EXPORT_DIR)
"
man
:
svn
_export
man
:
git
_export
@
make
-C
"
$(EXPORT_DIR)
/man"
@
make
-C
"
$(EXPORT_DIR)
/man"
svn
_export
:
clean
git
_export
:
clean
@
if
svn info
2>/dev/null
>
&2
;
\
@
if
git status
2>/dev/null
>
&2
;
\
then
svn
export
--quiet
"
$(SVN_REPO_BASE)
"
"
$(EXPORT_DIR)
"
;
\
then
git clone
.
"
$(EXPORT_DIR)
"
;
\
else
svk co
"
$(SVK_REPO_BASE)
"
"
$(EXPORT_DIR)
"
;
\
else
echo
"No git repo found."
;
exit
1
;
\
fi
fi
# Windows needs a different name for the startup script - due to process creation
(
no fork/exec
)
# Windows needs a different name for the startup script - due to process creation
(
no fork/exec
)
@
cp
"
$(EXPORT_DIR)
/
pycam"
"
$(EXPORT_DIR)
/pycam-loader.py"
@
cp
"
$(EXPORT_DIR)
/
scripts/pycam"
"
$(EXPORT_DIR)
/scripts
/pycam-loader.py"
create_archive_dir
:
create_archive_dir
:
@
mkdir
-p
"
$(ARCHIVE_DIR)
"
@
mkdir
-p
"
$(ARCHIVE_DIR)
"
zip
:
create_archive_dir man
svn
_export
zip
:
create_archive_dir man
git
_export
cd
"
$(EXPORT_DIR)
"
;
$(PYTHON_EXE)
setup.py sdist
--format
zip
--dist-dir
"
$(ARCHIVE_DIR)
"
cd
"
$(EXPORT_DIR)
"
;
$(PYTHON_EXE)
setup.py sdist
--format
zip
--dist-dir
"
$(ARCHIVE_DIR)
"
tgz
:
create_archive_dir man
svn
_export
tgz
:
create_archive_dir man
git
_export
cd
"
$(EXPORT_DIR)
"
;
$(PYTHON_EXE)
setup.py sdist
--format
gztar
--dist-dir
"
$(ARCHIVE_DIR)
"
cd
"
$(EXPORT_DIR)
"
;
$(PYTHON_EXE)
setup.py sdist
--format
gztar
--dist-dir
"
$(ARCHIVE_DIR)
"
win32
:
create_archive_dir man
svn
_export
win32
:
create_archive_dir man
git
_export
# this is a binary release
# this is a binary release
cd
"
$(EXPORT_DIR)
"
;
$(PYTHON_EXE)
setup.py bdist_wininst
--user-access-control
force
--dist-dir
"
$(ARCHIVE_DIR)
"
$(DISTUTILS_PLAT_NAME)
cd
"
$(EXPORT_DIR)
"
;
$(PYTHON_EXE)
setup.py bdist_wininst
--user-access-control
force
--dist-dir
"
$(ARCHIVE_DIR)
"
$(DISTUTILS_PLAT_NAME)
...
...
man/Makefile
View file @
765b22b5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
pycam.1
:
../pycam pycam.1.inc
pycam.1
:
../pycam pycam.1.inc
help2man
--no-info
--name
=
"Toolpath Generation for 3-Axis CNC machining"
\
help2man
--no-info
--name
=
"Toolpath Generation for 3-Axis CNC machining"
\
--section
=
1
--manual
=
"PyCAM manual"
--include
=
pycam.1.inc
--output
=
pycam.1 ../pycam
--section
=
1
--manual
=
"PyCAM manual"
--include
=
pycam.1.inc
--output
=
pycam.1 ../
scripts/
pycam
clean
:
clean
:
@
rm
-f
pycam.1
@
rm
-f
pycam.1
...
...
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