Commit 9f3cbc3e authored by Sebastian Oeste's avatar Sebastian Oeste 🐧
Browse files

Add pika-control make file to automate rpm build

* Automate stuff to build pika rpm file. This package need no fancy
  docker stuff. If you have `rpmbuild` installed just run `make rpm`.
parent d3b465e0
PROJECT_NAME = pika
FILES = README.md \
pika_access_template \
pika.conf \
pika.spec \
slurm/epilog.sh \
slurm/prolog.sh \
slurm/utils/pika_update_metadata_epilog_include.sh \
slurm/utils/pika_utils.sh \
slurm/utils/pika_slurm_env_epilog.sh \
slurm/utils/pika_save_metadata_prolog_include.sh \
slurm/utils/pika_slurm_env_prolog.sh
dist: $(FILES)
rm -rf $(PROJECT_NAME)
mkdir $(PROJECT_NAME)
cp -r $(FILES) $(PROJECT_NAME)
tar czf $(PROJECT_NAME).tar.gz $(PROJECT_NAME)
rpm: dist
rm -rf rpmbuild
mkdir -p rpmbuild/SOURCES
cp $(PROJECT_NAME).tar.gz rpmbuild/SOURCES/.
rpmbuild --define="_topdir `pwd`/rpmbuild" -ba pika.spec
clean:
rm -f $(PROJECT_NAME).tar.gz
rm -rf $(PROJECT_NAME)
rm -rf rpmbuild
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment