package_arch = $(subst -,_,${PACKAGE_ARCH}) | |
NAME = sncfg_elf | |
LIB = lib$(NAME).a | |
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_sbindir) | |
cp -af ./$(base_sbindir)/sncfg $(ROOT)/$(base_sbindir)/ | |
_uninstall: | |
rm -f $(ROOT)/$(base_sbindir)/sncfg | |
clean: | |
rm -rf bin/ doc/ ./$(base_libdir) usr/ test/ | |