-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 1.29 KB
/
Makefile
File metadata and controls
45 lines (36 loc) · 1.29 KB
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
36
37
38
39
40
41
42
43
44
45
# Make sure that user sets SERIES
# There are much better ways to do this, but
# we may not have GNU Make on AIX so
# just force the check for every rule...=(
PACKAGENAME = slapi
PACKAGEVERSION := $(shell cat VERSION)
PACKAGERELEASE := $(shell cat RELEASE)
BUILDSOURCE = --buildsource
URL = git@github.com:LLNL/$(PACKAGENAME).git
all: $(PACKAGENAME)
$(PACKAGENAME):
cd src && \
./autogen.sh && \
./configure --prefix=/usr && \
make -s
.PHONY:
cscope: .PHONY
rm -f cscope.*
find ${PWD}/src -name .pc -prune -o -name '*.[chxsS]' -print > cscope.files
cscope -b -u -k -R
svntag:
./scripts/svntag.pl $(PACKAGENAME) $(URL)
tag: .PHONY
@echo Tagging this as $(PACKAGENAME)-$(PACKAGEVERSION)-$(PACKAGERELEASE)
git tag -a $(PACKAGENAME)-$(PACKAGEVERSION)-$(PACKAGERELEASE) -m "Tagging this as $(PACKAGENAME)-$(PACKAGEVERSION)-$(PACKAGERELEASE)"
@echo To push your new tag to GitHub run:
@echo git push origin $(PACKAGENAME)-$(PACKAGEVERSION)-$(PACKAGERELEASE)
tags: .PHONY
ctags -R --exclude=.pc --exclude=.svn src
rpms-release:
./scripts/build-rpm.pl --name $(PACKAGENAME) $(BUILDSOURCE) --scmtype git --scmurl $(URL)
rpms: $(PACKAGENAME)
./scripts/build-rpm.pl --name $(PACKAGENAME) $(BUILDSOURCE) --snapshot -s . -f specs/$(PACKAGENAME).spec
clean:
rm -rf .quilt tags cscope.*
cd src && ./autoclean.sh