Skip to content

Commit

Permalink
Makefile: added creation of symlinks to install section
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Dec 15, 2014
1 parent 147ab90 commit ea26ec9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ override LDFLAGS += -lz -lbz2 -llzma -lrpm -lrpmio
all: libdrpm.so.0.0.0

libdrpm.so.0.0.0: drpm.o drpm_read.o drpm_utils.o drpm_compstrm.o
$(CC) $^ -o $@ -shared -Wl,-soname,libdrpm.so.0 $(LDFLAGS)
$(CC) $^ -o $@ -shared -Wl,-soname,libdrpm.so.0.0.0 $(LDFLAGS)

install:
mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig
install -m 755 libdrpm.so.0.0.0 $(DESTDIR)$(libdir)/
install -m 644 drpm.h $(DESTDIR)$(includedir)/
install -m 644 drpm.pc $(DESTDIR)$(libdir)/pkgconfig/
ln -sf libdrpm.so.0.0.0 $(DESTDIR)$(libdir)/libdrpm.so.0
ln -sf libdrpm.so.0.0.0 $(DESTDIR)$(libdir)/libdrpm.so

.PHONY: install

Expand Down

0 comments on commit ea26ec9

Please sign in to comment.