equal
deleted
inserted
replaced
90 host_os = cygwin |
90 host_os = cygwin |
91 endif |
91 endif |
92 endif |
92 endif |
93 endif |
93 endif |
94 |
94 |
|
95 ifneq '' '$(wildcard /etc/wsl.conf)' |
|
96 is_wsl := yes |
|
97 endif |
|
98 |
95 ################################################################ |
99 ################################################################ |
96 # Build tools definition/switches. |
100 # Build tools definition/switches. |
97 |
101 |
98 INSTALL = install |
102 INSTALL = install |
99 INSTALL_PROGRAM = $(INSTALL) |
103 INSTALL_PROGRAM = $(INSTALL) |
112 |
116 |
113 LATEX2PDF := pdflatex |
117 LATEX2PDF := pdflatex |
114 |
118 |
115 ifeq '$(ANKI_PY_DIR)' '' |
119 ifeq '$(ANKI_PY_DIR)' '' |
116 ANKI_PY_DIR := /usr/share/anki |
120 ANKI_PY_DIR := /usr/share/anki |
|
121 endif |
|
122 |
|
123 ADB := adb |
|
124 ifeq 'yes' '$(is_wsl)' |
|
125 ADB := adb.exe |
117 endif |
126 endif |
118 |
127 |
119 ################################################################ |
128 ################################################################ |
120 # Install paths. |
129 # Install paths. |
121 |
130 |
208 uninstall: |
217 uninstall: |
209 for f in $(notdir $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)); do \ |
218 for f in $(notdir $(DICTDZ_FILES) $(INDEX_FILES) $(PNG_FILES)); do \ |
210 rm -f $(datadir)/$$f; \ |
219 rm -f $(datadir)/$$f; \ |
211 done |
220 done |
212 rm -f $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES))) $(patsubst %.el,$(elispdir)/%.elc,$(notdir $(EL_FILES))) |
221 rm -f $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES))) $(patsubst %.el,$(elispdir)/%.elc,$(notdir $(EL_FILES))) |
|
222 |
|
223 .PHONY: upload-anki-android |
|
224 upload-anki-android: $(SRS_ANKI_FILES) |
|
225 \ |
|
226 for f in $(SRS_ANKI_FILES); do \ |
|
227 $(ADB) push $$f /sdcard/AnkiDroid/; \ |
|
228 done |
213 |
229 |
214 ################################################################ |
230 ################################################################ |
215 # Deploy/release targets. |
231 # Deploy/release targets. |
216 |
232 |
217 SF_USER ?= gavenkoa |
233 SF_USER ?= gavenkoa |