-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (33 loc) · 6.36 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# small makefile to patch agvtool into mulle-agvtool
# just say make
#
# Coded 2014 by Nat!
# ====================
# www.mulle-kybernetik.com
#
# This makefile will regenerate itself, when changes to mulle-agvtool
# have been made
#
XCODE:=$(shell xcode-select -p)
AGVTOOL:=$(XCODE)/usr/bin/agvtool
PATCHSTRING:=QlpoOTFBWSZTWe3ELTwACWvfgG/7f///////////////YBI/ebgN9HvE7rzpbDgc51um94C7XUEkkqkvI03LgdazbWso2ddWa2r3eGQiaKn6aFMaj8o0JiG0CbKGmRptQDEw1MjAnqZMAT1MMQgTQI0mVT/RKb1G1GnqjaeqeTU9QAHoh5Q0DIGagGmRg4ABoNDQaADTINDIGmgAAMgAyAyAAk0okQp6RhkjGk9E0yaPSZqAAAMjRkBoNAANMgRKITTTFPQTSaGTU9KfpT1PCh6npqaeiGjQGg09I9IAeoD0hoIlE1MgCCntGRNManqAmo8p5TQ8UaZAepoekaPKAPUA9Q2mhAkUckWRGRQHoIABRCPOQClQpzEqNw3Fa1cYRLhVVoUO6JQYBHCVRRiAoIlYWlCqgQIgczA3T/pB4hZSJc2Lfeq8jC9YhFEIVXQF345d1nyz1ylGOfspwnX4a/P8V5j5Dg/9KABqtCiQlGiG0qQKaXq2IuEtGsgKb2rq8QbU8ThIRY5JnYMAgZnwyaMgxZxxbuoKhIcGmnClvA5s/8RNhggypJNBEdEgJGQrtMSRoJKvk3zw8NHvxtnt0t54nNuSbdPDW6QfhydTaYXX6hPrrsSQAYuEF24mumL2hmED6t9YM/W16RKsxSx+NBlLk3Y46fYjqwwzxQy49IllIBpMeq1XEBJS6NqvgFOeCEIRuu+V1XOglOrzqH5VaQ4LB2U1p8F6DnakIScAE5FJ9oBGGEBGCrAgweZ56Y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XPEjAAvR54kh8sDUkdVkDmJmGCPE26OXgaggwiewieU8wKeqIg1IlYUf/ERSZANHmCNbcHfgSDftjJQnkCBELEX6DDORbYwidKXR50pjJUjFT/fTtSdpxALSIsAicsLD31jkTFTSiKgG3c6OHZzRGQ686nWP/F3JFOFCQ7cQtPA=
SHASUM:=e7b6e549ccdbcd24f512f597254532928101ff95
GZIP:=bzip2
.PHONY: clean
all: mulle-agvtool mulle-agvtool.diff
@ NEWSHASUM="$(shell shasum mulle-agvtool | awk '{ print $$1 }')" ; if [ "$$NEWSHASUM" != "$(SHASUM)" ] ; then NEWPATCHSTRING=$(shell diff -u "$(AGVTOOL)" mulle-agvtool | $(GZIP) -9 | base64 ); mv Makefile Makefile.bak ; cat Makefile.bak | sed "s|^PATCHSTRING:=.*|PATCHSTRING:=$$NEWPATCHSTRING|" | sed "s|^SHASUM:=.*|SHASUM:=$$NEWSHASUM|" > Makefile; echo "Makefile updated" ; fi
install: all
install -S -m 755 mulle-agvtool /usr/local/bin
mulle-agvtool: $(AGVTOOL)
cp $< $@
chmod 755 $@
echo $(PATCHSTRING) | base64 -D | $(GZIP) -d -c | patch $@
# this is used so one can look at the changes in git
# more easily
mulle-agvtool.diff: $(AGVTOOL) mulle-agvtool
- diff "$(AGVTOOL)" mulle-agvtool > mulle-agvtool.diff
clean:
@- rm mulle-agvtool 2> /dev/null
@- rm Makefile.bak 2> /dev/null
@- echo "cleaned"