X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=icon%2FMakefile.am;h=92b5a6e8625fad711a25e7958eed16a94642dd8e;hb=23708b4760250f55e8e3b1a0141df9a9ee17a936;hp=db5577d6454fdf14a5dcfa045b503b2c751bedbf;hpb=4ec960b705b87b15d015abb2a9a3e23eee414f1d;p=fw%2Faltos diff --git a/icon/Makefile.am b/icon/Makefile.am index db5577d6..92b5a6e8 100644 --- a/icon/Makefile.am +++ b/icon/Makefile.am @@ -1,15 +1,20 @@ -LINUX_RES=16 32 48 64 128 256 512 +JAVA_RES=16 32 48 64 128 256 MAC_RES=16 32 128 256 512 WIN_RES=16 24 32 48 64 72 96 128 180 256 -RES=$(shell echo $(LINUX_RES) $(MAC_RES) $(WIN_RES) | awk '{ for (i = 1; i <= NF; i++) printf("%s\n", $$i); }' | sort -n -u) +RES=$(shell echo $(JAVA_RES) $(MAC_RES) $(WIN_RES) | awk '{ for (i = 1; i <= NF; i++) printf("%s\n", $$i); }' | sort -n -u) AM_FILES=$(shell for i in $(RES); do echo altus-metrum-$$i.png; done) MP_FILES=$(shell for i in $(RES); do echo micropeak-$$i.png; done) TG_FILES=$(shell for i in $(RES); do echo telegps-$$i.png; done) + MAC_TG_FILES=$(shell for i in $(MAC_RES); do echo telegps-$$i.png; done) MAC_MP_FILES=$(shell for i in $(MAC_RES); do echo micropeak-$$i.png; done) MAC_AM_FILES=$(shell for i in $(MAC_RES); do echo altus-metrum-$$i.png; done) +WIN_TG_FILES=$(shell for i in $(WIN_RES); do echo telegps-$$i.png; done) +WIN_MP_FILES=$(shell for i in $(WIN_RES); do echo micropeak-$$i.png; done) +WIN_AM_FILES=$(shell for i in $(WIN_RES); do echo altus-metrum-$$i.png; done) + ICO_FILES=altus-metrum.ico micro-peak.ico telegps.ico ICNS_FILES=AltosUIIcon.icns TeleGPS.icns MicroPeak.icns @@ -29,34 +34,34 @@ res: all-local: $(ICO_FILES) $(ICNS_FILES) clean-local: - $(RM) $(TG_FILES) $(MP_FILES) $(ICO_FILES) $(ICNS_FILES) *.build + $(RM) altus-metrum-*.png telegps-*.png micropeak-*.png *.build *.ico *.icns $(AM_FILES): altusmetrum.build -altusmetrum.build: altusmetrum.svg +altusmetrum.build: altusmetrum.svg make-png for i in $(RES); do ./make-png altusmetrum.svg $$i altus-metrum-$$i.png; done && touch $@ $(TG_FILES): telegps.build -telegps.build: telegps.svg +telegps.build: telegps.svg make-png for i in $(RES); do ./make-png telegps.svg $$i telegps-$$i.png; done && touch $@ $(MP_FILES): micropeak.build -micropeak.build: micropeak.svg +micropeak.build: micropeak.svg make-png for i in $(RES); do ./make-png micropeak.svg $$i micropeak-$$i.png; done && touch $@ #clean-local: # $(RM) -f $(ICO_FILES) -altus-metrum.ico: $(AM_FILES) - icotool -c -o $@ $(AM_FILES) +altus-metrum.ico: $(WIN_AM_FILES) + icotool -c -o $@ $(WIN_AM_FILES) -micro-peak.ico: $(MP_FILES) - icotool -c -o $@ $(MP_FILES) +micro-peak.ico: $(WIN_MP_FILES) + icotool -c -o $@ $(WIN_MP_FILES) -telegps.ico: $(TG_FILES) - icotool -c -o $@ $(TG_FILES) +telegps.ico: $(WIN_TG_FILES) + icotool -c -o $@ $(WIN_TG_FILES) AltosUIIcon.icns: $(MAC_AM_FILES) png2icns $@ $(MAC_AM_FILES)