summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-05 17:09:15 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit06904ad6c8de153b9174f178aaa226c3b8ceb622 (patch)
tree0469fbfc0aed5b09b38dbe9eb75b693d6f1e9a3d /Makefile
parent0568060829ccb059aa203f4ffde19761a5c03e0b (diff)
Makefile: Cleanup old targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 0 insertions, 46 deletions
diff --git a/Makefile b/Makefile
index 0891de2..5e8375f 100644
--- a/Makefile
+++ b/Makefile
@@ -11,52 +11,6 @@ test-go:
#WRAPPERS ?= $(notdir $(patsubst %/,%,$(wildcard wrappers/*/)))
WRAPPERS=python
-MOCK_TARGET=epel-7-x86_64
-
-rpm-depends:
-# Setup dependencies
- echo "installing dependencies"
- dnf install -y \
- devscripts \
- golang \
- gcc \
- fedora-packager \
- fedora-review \
- python3-devel \
- python3-wheel \
- python3-setuptools \
- mock
-
-srpm:
-# Ensure tree
- rpmdev-setuptree
-
-# Cleanup
- rm -rf dist/*
-
-# Archive code with vendored dependencies
- git clone . dist/libeduvpn-common-2.0.0
- go mod vendor
- cp -r vendor dist/libeduvpn-common-2.0.0/vendor
- tar -zcvf ~/rpmbuild/SOURCES/libeduvpn-common.tar.gz -C dist .
-
-# Cleanup
- rm -rf dist/*
-
-# build SRPM and copy to dist
- rpmbuild -bs eduvpncommon.spec
- cp ~/rpmbuild/SRPMS/* dist/
- echo "Done building SRPM, go to ./dist/ to view it"
-
-rpm: srpm
- rpmbuild -bb eduvpncommon.spec
- find ~/rpmbuild/RPMS -name '*.rpm' -exec mv {} ./dist \;
- echo "Done building RPM, go to ./dist/ to view them"
-
-rpm-mock: srpm
- mock -r "$(MOCK_TARGET)" --resultdir ./dist rebuild ~/rpmbuild/SRPMS/libeduvpn-common*.src.rpm
- echo "Done building RPM, go to ./dist/ to view them"
-
# Enable parallelism if -j is specified, but first execute build
test-wrappers: build
$(MAKE) $(foreach wrapper,$(WRAPPERS),.test-$(wrapper))