-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
34 lines (26 loc) · 903 Bytes
/
Makefile.am
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
logconv_NAME = pm_logconv
logconv_SCRIPTS = $(logconv_NAME).py
logconv_CONFIG = $(logconv_NAME).conf
MAINTAINERCLEANFILES = Makefile.in
logconvdir = @HA_NOARCHDATAHBDIR@/$(logconv_NAME)
logconvcfdir = @CONFIG_DIR@
SHAREDIR = $(logconvdir)
SPEC = $(logconv_NAME).spec
TARFILE = $(PACKAGE_NAME)-$(VERSION).tar.gz
EXTRA_DIST = $(logconv_SCRIPTS) $(logconv_CONFIG) $(SPEC)
install-data-hook:
@$(NORMAL_INSTALL)
test -z "$(logconvcfdir)" || $(mkdir_p) "$(DESTDIR)$(logconvcfdir)"
$(INSTALL_DATA) "$(logconv_CONFIG)" "$(DESTDIR)$(logconvcfdir)"
$(TARFILE):
$(MAKE) dist
RPM_ROOT = $(shell pwd)
RPMBUILDOPTS = --define "_sourcedir $(RPM_ROOT)" --define "_specdir $(RPM_ROOT)"
srpm: clean
rm -f $(TARFILE)
$(MAKE) $(SPEC) $(TARFILE)
rpmbuild $(RPMBUILDOPTS) --nodeps -bs --rmsource $(SPEC)
rpm: clean
rm -f $(TARFILE)
$(MAKE) $(SPEC) $(TARFILE)
rpmbuild $(RPMBUILDOPTS) -ba --rmsource $(SPEC)