rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | package_arch = $(subst -,_,${PACKAGE_ARCH}) |
| 2 | NAME = sncfg_elf |
| 3 | LIB = lib$(NAME).a |
| 4 | INSTALL = _install |
| 5 | UNINSTALL = _uninstall |
| 6 | |
| 7 | include $(PREFIX)/Makefile.prebuilt.template |
| 8 | |
| 9 | |
| 10 | all: |
| 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 | |
| 19 | clean: |
| 20 | rm -rf bin/ doc/ ./$(base_libdir) usr/ test/ |
| 21 | |
| 22 | |