diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-20 10:00:32 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-27 09:30:02 -0400 |
commit | b408ac0deafcbedfe468b61d00ea96d778a92882 (patch) | |
tree | d4ed40f4344311be24fd32cc9c392214fd1212d5 /libopenbmc_intf | |
parent | fa8f6166a05410472e8a3ef6a2f2e3b9b5f8d8e4 (diff) | |
download | talos-skeleton-b408ac0deafcbedfe468b61d00ea96d778a92882.tar.gz talos-skeleton-b408ac0deafcbedfe468b61d00ea96d778a92882.zip |
Add install-headers target
Install the libopenbmc_intf includes in prep for a devel
package.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'libopenbmc_intf')
-rw-r--r-- | libopenbmc_intf/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libopenbmc_intf/Makefile b/libopenbmc_intf/Makefile index 8853318..54bef57 100644 --- a/libopenbmc_intf/Makefile +++ b/libopenbmc_intf/Makefile @@ -1,14 +1,19 @@ PACKAGE_DEPS=gio-unix-2.0 glib-2.0 -INSTALLDEPS=install-lib +INSTALLDEPS=install-lib install-headers CLEANDEPS=clean-lib DEFAULT_ALL=$(LIBOBMC) ALL_CFLAGS+=-iquote ../gdbus LIBOBMC=openbmc_intf +INCLUDES=openbmc_intf.h openbmc.h gpio.h $(LIBOBMC): %: %.o gpio.o $(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname,lib$(LIBOBMC).so \ -o lib$@.so.1 $^ $(LDLIBS) +install-headers: + @mkdir -p $(DESTDIR)$(includedir) + install $(INCLUDES) $(DESTDIR)$(includedir) + install-lib: @mkdir -p $(DESTDIR)$(libdir) install lib$(LIBOBMC).so.1 $(DESTDIR)$(libdir) |