2
GET_ARCH := ../../external/common/get_arch.sh
3
include ../../external/common/rules.mk
5
all: links arch_links $(EXE)
8
.version: VERSION-always
9
@echo $(PFLASH_VERSION) > $@.tmp
10
@cmp -s $@ $@.tmp || cp $@.tmp $@
13
install: all $(INSTALLDEPS)
14
install -D pflash $(DESTDIR)$(sbindir)/pflash
17
#File is named $(PFLASH_VERSION).tar because the expectation is that pflash-
18
#is always at the start of the verion. This remains consistent with skiboot
21
find -L ../pflash/ -iname '*.[ch]' -print0 | xargs -0 tar -rhf $(PFLASH_VERSION).tar
22
tar --transform 's/Makefile.dist/Makefile/' -rhf $(PFLASH_VERSION).tar \
23
../pflash/Makefile.dist ../pflash/rules.mk \
24
../pflash/.version ../pflash/make_version.sh \
29
rm -f $(OBJS) $(EXE) *.o *.d
32
rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ libflash/*.c~ libflash/*.h~
33
rm -f libflash ccan version.c .version .version.tmp