diff options
| author | Niels de Vos <ndevos@redhat.com> | 2017-10-10 13:23:50 +0200 |
|---|---|---|
| committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-10-13 16:28:55 +0000 |
| commit | a413c6353dbfff5221ea020ff8e1475d5ee17a81 (patch) | |
| tree | c09014d0d29fe99edff678c5861da13e1986febb /tests/basic/gfapi/Makefile | |
| parent | c64fd0d4b0ef313bb44aae68a376ec0c9ee8657a (diff) | |
build: make it possible to build cleanly 2x in a row
'make clean' does not cleanup everything, and some of the files get
cleaned too eagerly. Several files are being packaged in a 'make dist'
tarball, that get rebuild each time anyway.
Specifically, this change prevents
- libglusterfs/src/generator.pyc from laying around
- keeping rpc/xdr/gen/*.x symlinks
- modifying tests/basic/{fuse,gfapi}/Makefile each run
- including tests/env.rc and events/src/eventtypes.py in the tarball
Change-Id: I774dd1abf3a9d3b6a89b938cf6ee7d7792c59a82
BUG: 1501317
Reported-by: Patrick Matthäi <pmatthaei@debian.org>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'tests/basic/gfapi/Makefile')
| -rw-r--r-- | tests/basic/gfapi/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/basic/gfapi/Makefile b/tests/basic/gfapi/Makefile new file mode 100644 index 00000000000..e30fefea5b9 --- /dev/null +++ b/tests/basic/gfapi/Makefile @@ -0,0 +1,21 @@ +## compiles against the *system* version of libgfapi, +## but not the libgfapi for the testcases + +CFLAGS = -Wall -g $(shell pkg-config --cflags glusterfs-api) +LDFLAGS = $(shell pkg-config --libs glusterfs-api) + +BINARIES = upcall-cache-invalidate libgfapi-fini-hang anonymous_fd seek \ + bug1283983 bug1291259 gfapi-ssl-test gfapi-load-volfile + +%: %.c + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + +all: check-pkgconfig $(BINARIES) + +clean: + -$(RM) $(BINARIES) + +.phony: check-pkgconfig + +check-pkgconfig: + pkg-config --exists glusterfs-api |
