-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
37 lines (27 loc) · 1.19 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
36
37
name = renumid
version = $(shell awk '/^Version: / {print $$2}' $(name).spec)
prefix = /usr
sbindir = $(prefix)/sbin
mandir = $(datadir)/man
.PHONY: all install docs clean
all:
@echo "Nothing to be build."
docs: all
$(MAKE) -C docs docs
install: docs-install
# -[ ! -f $(DESTDIR)$(sysconfdir)/dstat.conf ] && install -D -m0644 dstat.conf $(DESTDIR)$(sysconfdir)/dstat.conf
install -Dp -m0755 renumid.py $(DESTDIR)$(sbindir)/renumid
docs-install:
$(MAKE) -C docs install
clean:
$(MAKE) -C docs clean
dist: clean
# svn up && svn list -R | pax -d -w -x ustar -s ,^,$(name)-$(version)/, | bzip2 >../$(name)-$(version).tar.bz2
# svn st -v --xml | \
# xmlstarlet sel -t -m "/status/target/entry" -s A:T:U '@path' -i "wc-status[@revision]" -v "@path" -n | \
# pax -d -w -x ustar -s ,^,$(name)-$(version)/, | \
# bzip2 >../$(name)-$(version).tar.bz2
#rpm: dist
# rpmbuild -tb --clean --rmspec --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" --define "_rpmdir ../" ../$(name)-$(version).tar.bz2
#srpm: dist
# rpmbuild -ts --clean --rmspec --define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" --define "_srcrpmdir ../" ../$(name)-$(version).tar.bz2