Skip to content

Commit 5eb14ed

Browse files
committed
By default build only binaries which are installed
1 parent 556ff30 commit 5eb14ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.POSIX:
22
.SUFFIXES:
3-
.PHONY: all clean install uninstall
3+
.PHONY: default all clean install uninstall
44

55
RM = rm -f
66
CP = cp -a
@@ -39,12 +39,14 @@ IOBJECTS = $(NAME)enc.o $(NAME)dec.o
3939

4040
BUILD = $(SOFILENAME) $(SONAME) $(LIBNAME) $(ANAME) $(AOBJECTS) $(IOBJECTS) $(UTILITIES) $(STATIC_UTILITIES)
4141

42+
default: $(SOFILENAME) $(SONAME) $(LIBNAME) $(ANAME) $(UTILITIES) $(HEADERS)
43+
4244
all: $(BUILD)
4345

4446
clean:
4547
$(RM) $(BUILD)
4648

47-
install: $(SOFILENAME) $(SONAME) $(LIBNAME) $(ANAME) $(UTILITIES) $(HEADERS)
49+
install: default
4850
$(MKDIR) $(DESTDIR)$(PREFIX)/$(LIBDIR)
4951
$(CP) $(SOFILENAME) $(SONAME) $(LIBNAME) $(ANAME) $(DESTDIR)$(PREFIX)/$(LIBDIR)
5052
$(MKDIR) $(DESTDIR)$(PREFIX)/$(BINDIR)

0 commit comments

Comments
 (0)