forked from containers/fuse-overlayfs
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.am
35 lines (26 loc) · 1.21 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
SUBDIRS = lib
bin_PROGRAMS = migratefs
ACLOCAL_AMFLAGS = -Im4
EXTRA_DIST = m4/gnulib-cache.m4 rpm/fuse-migratefs.spec.template autogen.sh systemd/migratefs.service systemd/migratefs
migratefs_CFLAGS = -I . -I lib $(FUSE_CFLAGS) -rdynamic
migratefs_LDFLAGS =
migratefs_LDADD = lib/libgnu.a $(FUSE_LIBS)
migratefs_SOURCES = main.c
WD := $(shell pwd)
#man1_MANS = fuse-migratefs.1
#
#fuse-migratefs.1:
# go-md2man -in $(abs_srcdir)/fuse-migratefs.1.md -out fuse-migratefs.1
#
#generate-man: fuse-migratefs.1
# go-md2man -in migratefs.1.md -out migratefs.1
fuse-migratefs.spec: $(srcdir)/rpm/fuse-migratefs.spec.template
sed -e 's|#VERSION#|$(VERSION)|g' < $< > $@
rpm: dist-gzip fuse-migratefs.spec
echo $(VERSION)
$(MAKE) -C $(WD) dist-xz
rpmbuild -ba --define "_sourcedir $(WD)" --define "_specdir $(WD)" --define "_builddir $(WD)" --define "_srcrpmdir $(WD)" --define "_rpmdir $(WD)" --define "_buildrootdir $(WD)/.build" fuse-migratefs.spec
srpm: dist-gzip fuse-migratefs.spec
echo $(VERSION)
$(MAKE) -C $(WD) dist-xz
rpmbuild -bs --define "_sourcedir $(WD)" --define "_specdir $(WD)" --define "_builddir $(WD)" --define "_srcrpmdir $(WD)" --define "_rpmdir $(WD)" --define "_buildrootdir $(WD)/.build" fuse-migratefs.spec