forked from tfb-bull/lcap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
30 lines (23 loc) · 1 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
ACLOCAL_AMFLAGS = -I .autotools/m4
rpm_dir=`pwd`/rpms
rpmbuild_opt=
SUBDIRS=src
new: clean all
rpms: lcap.spec dist
mkdir -p $(rpm_dir)/BUILD $(rpm_dir)/SPECS $(rpm_dir)/SRPMS $(rpm_dir)/RPMS \
&& rpmbuild $(rpmbuild_opt) --define="_topdir $(rpm_dir)" \
--define="purpose $(purpose)" --define="_prefix $(prefix)" \
-ta $(distdir).tar.gz \
&& echo "RPMs successfully generated in $(rpm_dir)"
rpm: lcap.spec dist
mkdir -p $(rpm_dir)/BUILD $(rpm_dir)/SPECS $(rpm_dir)/SRPMS $(rpm_dir)/RPMS \
&& rpmbuild $(rpmbuild_opt) --define="_topdir $(rpm_dir)" \
--define="_prefix $(prefix)" -tb $(distdir).tar.gz \
&& echo "RPM successfully generated in $(rpm_dir)/RPMS"
srpm: lcap.spec dist
mkdir -p $(rpm_dir)/BUILD $(rpm_dir)/SPECS $(rpm_dir)/SRPMS $(rpm_dir)/RPMS \
&& rpmbuild $(rpmbuild_opt) --define="_topdir $(rpm_dir)" --define="_prefix $(prefix)" \
-ts $(distdir).tar.gz \
&& echo "src RPM successfully generated in $(rpm_dir)/SRPMS"
EXTRA_DIST= lcap.spec lcap.spec.in \
share/config/lcap.cfg