Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion builtins/fetchcode_container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
# See https://aboutcode.org for more information about nexB OSS projects.
#

ARCH := $(shell uname -m)
ifeq ($(ARCH),aarch64)
PLAT_NAME := "manylinux2014_aarch64"
GOARCH := "arm64"
else
PLAT_NAME := "manylinux1_x86_64"
GOARCH := "amd64"
endif

clean:
rm -rf build/ dist/
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
Expand All @@ -14,7 +23,7 @@ build:
rm -f src/fetchcode_container/bin/skopeo*
python setup.py clean --all sdist
rm -f src/fetchcode_container/bin/skopeo*
GOOS=linux GOARCH=amd64 python setup.py clean --all bdist_wheel --python-tag py3 --plat-name manylinux1_x86_64
GOOS=linux GOARCH=$(GOARCH) python setup.py clean --all bdist_wheel --python-tag py3 --plat-name $(PLAT_NAME)
# rm -f src/fetchcode_container/bin/skopeo*
# GOOS=darwin GOARCH=amd64 python setup.py clean --all bdist_wheel --python-tag py3 --plat-name macosx_10_14_x86_64
# rm -f src/fetchcode_container/bin/skopeo*
Expand Down
9 changes: 8 additions & 1 deletion builtins/packagedcode_msitools-linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
# See https://aboutcode.org for more information about nexB OSS projects.
#

ARCH := $(shell uname -m)
ifeq ($(ARCH),aarch64)
PLAT_NAME := "manylinux2014_aarch64"
else
PLAT_NAME := "manylinux1_x86_64"
endif

clean:
rm -rf build/ dist/
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
Expand All @@ -14,6 +21,6 @@ build:
rm -f src/packagedcode_msitools/bin/msi*
python setup.py clean --all sdist
rm -f src/packagedcode_msitools/bin/msi*
python setup.py clean --all bdist_wheel --python-tag py3 --plat-name manylinux1_x86_64
python setup.py clean --all bdist_wheel --python-tag py3 --plat-name $(PLAT_NAME)

.PHONY: clean build
25 changes: 25 additions & 0 deletions builtins/rpm_inspector_rpm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#
# Copyright (c) nexB Inc. and others. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/aboutcode-org/ for support or download.
# See https://aboutcode.org for more information about nexB OSS projects.
#

ARCH := $(shell uname -m)
ifeq ($(ARCH),aarch64)
PLAT_NAME := "manylinux2014_aarch64"
else
PLAT_NAME := "manylinux1_x86_64"
endif

clean:
rm -rf build/ dist/
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete

build:
rm -f src/rpm_inspector_rpm/bin/rpm
python setup.py clean --all sdist
python setup.py clean --all bdist_wheel --python-tag py3 --plat-name $(PLAT_NAME)

.PHONY: clean build