blob: a8546f05330a4e08df09706534da4e20c129455a [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001package_arch = $(subst -,_,${PACKAGE_ARCH})
2NAME = sncfg_elf
3LIB = lib$(NAME).a
4INSTALL = _install
5UNINSTALL = _uninstall
6
7include $(PREFIX)/Makefile.prebuilt.template
8
9
10all:
11_install:
12 find -name "*.$(package_arch).rpm" | while read i; do ${bindir}/rpm2cpio $${i} | cpio -idmv ; done
13 mkdir -p $(ROOT)/$(base_sbindir)
14 cp -af ./$(base_sbindir)/sncfg $(ROOT)/$(base_sbindir)/
15
16_uninstall:
17 rm -f $(ROOT)/$(base_sbindir)/sncfg
18
19clean:
20 rm -rf bin/ doc/ ./$(base_libdir) usr/ test/
21
22