aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2011-04-13 13:06:05 +0200
committerChristopher Li <sparse@chrisli.org>2011-04-18 03:22:39 -0700
commitba457c8395073a0b02fdf4fdcb1c6ecd256e081a (patch)
tree6b014b24c291646c354489d94fe244cf36b960bc
parentce870b5e305bf4f4422b1a82d75b6c73271981fa (diff)
downloadsparse-ba457c8395073a0b02fdf4fdcb1c6ecd256e081a.tar.gz
build: add an all-installable target that builds the targets to install.
This is useful for distributions that don't want to build content that won't be installed. Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d259eed..4feaa138 100644
--- a/Makefile
+++ b/Makefile
@@ -118,7 +118,9 @@ SED_PC_CMD = 's|@version@|$(VERSION)|g; \
all: $(PROGRAMS) sparse.pc
-install: $(INST_PROGRAMS) $(LIBS) $(LIB_H) sparse.pc
+all-installable: $(INST_PROGRAMS) $(LIBS) $(LIB_H) sparse.pc
+
+install: all-installable
$(Q)install -d $(DESTDIR)$(BINDIR)
$(Q)install -d $(DESTDIR)$(LIBDIR)
$(Q)install -d $(DESTDIR)$(MAN1DIR)