blob: 6cece94544da23de69e35a0c3f4d53de4c2da07c [file] [log] [blame]
package_arch = $(subst -,_,${PACKAGE_ARCH})
NAME = pal
LIB = lib$(NAME).a lib$(NAME).so
INSTALL = _install
UNINSTALL = _uninstall
include $(PREFIX)/Makefile.prebuilt.template
all:
_install:
find -name "*.$(package_arch).rpm" | while read i; do ${bindir}/rpm2cpio $${i} | cpio -idmv ; done
mkdir -p $(ROOT)/$(base_libdir)
mkdir -p $(ROOT)/$(includedir)/$(NAME)
-cp -af ./$(base_libdir)/lib$(NAME).* $(ROOT)/$(base_libdir)/
-cp -af ./$(includedir)/* $(ROOT)/$(includedir)
_uninstall:
rm -af $(ROOT)/$(base_libdir)/lib$(NAME).*
rm -rf $(ROOT)/$(includedir)/$(NAME)
clean:
rm -rf ./$(base_libdir) ./$(includedir)