-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile.am
43 lines (35 loc) · 1.43 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
37
38
39
40
41
42
43
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = lib src man
EXTRA_DIST = m4/gnulib-cache.m4
install-exec-local:
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfcat
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfcp
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfls
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfmkdir
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gftouch
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfrm
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfstat
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gftail
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gftruncate
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfclear
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfrmdir
$(LN_S) -f gfcli $(DESTDIR)$(bindir)/gfmv
rpms: prep
QA_RPATHS=17 rpmbuild --define '_topdir $(abs_top_builddir)/build/rpmbuild' \
-ba $(abs_top_builddir)/build/rpmbuild/SPECS/glusterfs-coreutils.spec
prep: dist
mkdir -p build/rpmbuild && cd build/rpmbuild \
&& mkdir BUILD SPECS RPMS SRPM SOURCES && cd ../..
rm -rf rpmbuild/SOURCES/*
cp *.tar.gz build/rpmbuild/SOURCES
cp glusterfs-coreutils.spec build/rpmbuild/SPECS
uninstall-local:
cd $(DESTDIR)$(bindir) && rm -f gfcat gfcp gfls gfmkdir gftouch gfmv gfrm gfstat gftail gftruncate
clean-local:
rm -rf build rpmbuild *.rpm
gitclean: clean distclean
find . -path gnulib -prune -name Makefile.in -exec rm -f {} \;
find . -path gnulib -prune -name Makefile -exec rm -f {} \;
rm -f aclocal.m4 compile config.* configure depcomp install-sh libtool \
ltmain.sh missing stamp-h1
rm -rf autom4te.cache