Skip to content

Commit

Permalink
semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Dec 16, 2020
1 parent cd2b22d commit 0dd405f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ VER_MAJOR := 1
VER_MINOR := 1
VER_PATCH := 0

# Soname ABI version
VER_ABI := 1

PROJECT := re
VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)

Expand Down Expand Up @@ -52,7 +49,8 @@ CFLAGS += -Iinclude

MODMKS := $(patsubst %,src/%/mod.mk,$(MODULES))
SHARED := libre$(LIB_SUFFIX)
SHARED_SONAME := libre$(LIB_SUFFIX).$(VER_ABI)
SHARED_SONAME := libre$(LIB_SUFFIX).$(VER_MAJOR)
SHARED_FILE := libre$(LIB_SUFFIX).$(VERSION)
STATIC := libre.a

ifeq ($(OS),linux)
Expand Down Expand Up @@ -118,8 +116,8 @@ install: $(SHARED) $(STATIC) libre.pc
$(INSTALL) -m 0644 $(shell find include -name "*.h") \
$(DESTDIR)$(INCDIR)
ifeq ($(OS),linux)
$(INSTALL) -m 0755 $(SHARED) $(DESTDIR)$(LIBDIR)/$(SHARED_SONAME)
cd $(DESTDIR)$(LIBDIR) && ln -sf $(SHARED_SONAME) $(SHARED)
$(INSTALL) -m 0755 $(SHARED) $(DESTDIR)$(LIBDIR)/$(SHARED_FILE)
cd $(DESTDIR)$(LIBDIR) && ln -sf $(SHARED_FILE) $(SHARED)
else
$(INSTALL) -m 0755 $(SHARED) $(DESTDIR)$(LIBDIR)
endif
Expand Down

0 comments on commit 0dd405f

Please sign in to comment.