blob: 5f5d3026506ea54c5fe96b87d4d2a9b211aeeedc (
plain)
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
|
Don't install plugin sources when plugins are disabled
With --disable-bcftools-plugins, configure leaves PLUGIN_EXT empty, so
`plugins/*$(PLUGIN_EXT)` in the install rule expands to `plugins/*` and
copies every plugin .c/.mk source file into $(plugindir). Only create
$(plugindir) and install plugins when they were actually built.
Bug: https://bugs.gentoo.org/741540
--- a/Makefile
+++ b/Makefile
@@ -362,11 +362,14 @@
# Since there is no make dependency, bcftools.1 can be out-of-date and
# make docs can be run to update if asciidoc is available
install: $(PROGRAMS) $(PLUGINS)
- $(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(plugindir)
+ $(INSTALL_DIR) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
$(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(bindir)
$(INSTALL_SCRIPT) $(MISC_SCRIPTS) $(DESTDIR)$(misc_bindir)
$(INSTALL_MAN) doc/bcftools.1 $(DESTDIR)$(man1dir)
+ifneq "$(PLUGINS_ENABLED)" "no"
+ $(INSTALL_DIR) $(DESTDIR)$(plugindir)
$(INSTALL_PROGRAM) plugins/*$(PLUGIN_EXT) $(DESTDIR)$(plugindir)
+endif
clean: testclean clean-plugins
-rm -f gmon.out *.o mpileup2/*.o *.a *~ $(PROGRAMS) version.h
|