~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/skiboot/external/pflash/Makefile

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include rules.mk
 
2
GET_ARCH := ../../external/common/get_arch.sh
 
3
include ../../external/common/rules.mk
 
4
 
 
5
all: links arch_links $(EXE)
 
6
 
 
7
.PHONY: VERSION-always
 
8
.version: VERSION-always
 
9
        @echo $(PFLASH_VERSION) > $@.tmp
 
10
        @cmp -s $@ $@.tmp || cp $@.tmp $@
 
11
        @rm -f $@.tmp
 
12
 
 
13
install: all $(INSTALLDEPS)
 
14
        install -D pflash $(DESTDIR)$(sbindir)/pflash
 
15
 
 
16
.PHONY: dist
 
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
 
19
#version strings
 
20
dist: links .version
 
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 \
 
25
                ../pflash/common/*
 
26
 
 
27
.PHONY: clean
 
28
clean: arch_clean
 
29
        rm -f $(OBJS) $(EXE) *.o *.d
 
30
.PHONY: distclean
 
31
distclean: clean
 
32
        rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ libflash/*.c~ libflash/*.h~
 
33
        rm -f libflash ccan version.c .version .version.tmp
 
34
        rm -f common io.h