forked from linux-ha-japan/pm_logconv-cs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
37 lines (28 loc) · 1.03 KB
/
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
34
35
36
logconv_NAME = pm_logconv
logconv_SCRIPTS = $(logconv_NAME).py
logconv_CONFIG = $(logconv_NAME).conf.sample
logconv_DATA = $(logconv_NAME)_rules.conf
MAINTAINERCLEANFILES = Makefile.in
logconvdir = @HA_NOARCHDATAHBDIR@/$(logconv_NAME)
logconvcfdir = @CONFIG_DIR@
SUBDIRS = init logrotate sosreport
SHAREDIR = $(logconvdir)
SPEC = $(logconv_NAME).spec
TARFILE = $(PACKAGE_NAME)-$(VERSION).tar.gz
EXTRA_DIST = $(logconv_SCRIPTS) $(logconv_CONFIG) $(logconv_DATA) $(SPEC) init logrotate
install-data-hook:
@$(NORMAL_INSTALL)
test -z "$(logconvcfdir)" || $(mkdir_p) "$(DESTDIR)$(logconvcfdir)"
$(INSTALL_DATA) "$(logconv_CONFIG)" "$(DESTDIR)$(logconvcfdir)"
$(TARFILE):
$(MAKE) dist
RPM_ROOT = $(CURDIR)
RPMBUILDOPTS = --define "_sourcedir $(RPM_ROOT)" --define "_specdir $(RPM_ROOT)"
srpm: clean
rm -f $(TARFILE)
$(MAKE) $(SPEC) $(TARFILE)
rpmbuild $(WITH_LIST) $(RPMBUILDOPTS) --nodeps -bs --rmsource $(SPEC)
rpm: clean
rm -f $(TARFILE)
$(MAKE) $(SPEC) $(TARFILE)
rpmbuild $(WITH_LIST) $(RPMBUILDOPTS) -ba --rmsource $(SPEC)