forked from opensciencegrid/osg-update-vos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 1.07 KB
/
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
32
33
34
35
VERSION = 1.4.0
NAME = osg-update-vos
NAME_VERSION = $(NAME)-$(VERSION)
SBINDIR = /usr/sbin
DOCDIR = /usr/share/doc/$(NAME_VERSION)
AFS_UPSTREAM_DIR = /p/vdt/public/html/upstream/$(NAME)
_default:
@echo "Nothing to make. Try make install"
clean:
rm -f *.py[co] *~
install:
mkdir -p $(DESTDIR)/$(SBINDIR)
install -p -m 755 $(NAME) $(DESTDIR)/$(SBINDIR)/$(NAME)
install -p -m 755 osg-update-data $(DESTDIR)/$(SBINDIR)/osg-update-data
mkdir -p $(DESTDIR)/$(DOCDIR)
install -p -m 644 README $(DESTDIR)/$(DOCDIR)
dist:
mkdir -p $(NAME_VERSION)
cp -rp $(NAME) Makefile README osg-update-data $(NAME_VERSION)/
tar czf $(NAME_VERSION).tar.gz $(NAME_VERSION)/ --exclude='*/.git*' --exclude='*/*.py[co]' --exclude='*/*~'
upstream: dist
if [[ -e $(AFS_UPSTREAM_DIR)/$(VERSION)/$(NAME_VERSION).tar.gz ]]; then echo "version already exists. remove it or bump version"; exit 1; else : ; fi
mkdir -p $(AFS_UPSTREAM_DIR)/$(VERSION)
mv -f $(NAME_VERSION).tar.gz $(AFS_UPSTREAM_DIR)/$(VERSION)/
rm -rf $(NAME_VERSION)
.PHONY: clean install dist upstream
# vim:ft=make:noet:ts=8:sts=8:sw=8