forked from opensciencegrid/hosted-ce-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 903 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
VERSION = 0.11
NAME=hosted-ce-tools
NAME_VERSION=$(NAME)-$(VERSION)
HASH = $(shell git rev-parse HEAD)
_default:
@echo "Nothing to make. Try make install or make install-noconfig"
install: install-noconfig
mkdir -p $(DESTDIR)/etc
install -p -m 644 config/endpoints.ini $(DESTDIR)/etc/
install-noconfig:
mkdir -p $(DESTDIR)/usr/bin
install -p -m 755 scripts/* $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/var/log/update-remote-wn-client
mkdir -p $(DESTDIR)/usr/lib/systemd/system
install -p -m 644 systemd/update-all-remote-wn-clients.* $(DESTDIR)/usr/lib/systemd/system/
testsource:
mkdir -p upstream
echo "type=git url=. name=$(NAME) tag=HEAD tarball=$(NAME_VERSION).tar.gz hash=$(HASH)" > upstream/test.source
rpmbuild: testsource
osg-build rpmbuild
kojiscratch: testsource
osg-build koji --scratch --getfiles
.PHONY: _default install-noconfig install testsource rpmbuild kojiscratch