Makefile: install package config .pc file.
This commit is contained in:
parent
3190dae731
commit
c5aad3535a
8
ipc.pc
Normal file
8
ipc.pc
Normal file
@ -0,0 +1,8 @@
|
||||
includedir=/usr/local/include
|
||||
libdir=/usr/local/lib
|
||||
|
||||
Name: LibIPC
|
||||
Description: The simplest Inter Process Communication library
|
||||
Version: 0.1.0
|
||||
Libs: -L${libdir} -lipc
|
||||
Cflags: -I${includedir}
|
10
makefile
10
makefile
@ -14,13 +14,17 @@ build:
|
||||
PREFIX ?= /usr/local
|
||||
LIBDIR ?= $(PREFIX)/lib
|
||||
INCLUDEDIR ?= $(PREFIX)/include
|
||||
PKGCONFIGDIR ?= /usr/share/pkgconfig
|
||||
install-pkgconfig:
|
||||
[ -d $(PKGCONFIGDIR) ] || install -m 0755 -d $(PKGCONFIGDIR)
|
||||
install -m 0644 ipc.pc $(PKGCONFIGDIR)
|
||||
install-library:
|
||||
[ -d $(LIBDIR) ] || install -m 0755 -d $(LIBDIR)
|
||||
install zig-out/lib/libipc* $(LIBDIR)
|
||||
install -m 0644 zig-out/lib/libipc.so $(LIBDIR)
|
||||
install-header:
|
||||
[ -d $(INCLUDEDIR) ] || install -m 0755 -d $(INCLUDEDIR)
|
||||
install libipc.h $(INCLUDEDIR)
|
||||
install: install-library install-header
|
||||
install -m 0644 libipc.h $(INCLUDEDIR)
|
||||
install: install-pkgconfig install-library install-header
|
||||
|
||||
uninstall-library:
|
||||
rm $(LIBDIR)/libipc.a \
|
||||
|
Loading…
Reference in New Issue
Block a user