-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (17 loc) · 777 Bytes
/
Makefile
File metadata and controls
18 lines (17 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
current_dir:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
_default:
@mkdir -p build
@echo "Perhaps you want:"
@echo "mkdir build ; cd ./build && cmake .. && cmake --build . --verbose && make test"
sources:
@echo "You found my koji hook"
@mkdir kcron
@cp -r doc src CMakeLists.txt LICENSE README.md kcron
tar cf - kcron | gzip --best > $(current_dir)/kcron.tar.gz
rm -rf kcron
srpm: sources
@echo "You found my copr hook"
rpmbuild -bs --define '_sourcedir $(current_dir)' --define '_srcrpmdir $(current_dir)/SRPMS' fermilab-util_kcron.spec
rpm: sources
@echo "You found my 'just build it' hook"
rpmbuild -bb --define '_rpmdir $(current_dir)/RPMS' --define '_builddir $(current_dir)/BUILD' --define '_sourcedir $(current_dir)' fermilab-util_kcron.spec