forked from hime-ime/hime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 926 Bytes
/
Makefile
File metadata and controls
47 lines (34 loc) · 926 Bytes
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
43
44
include config.mak
ECHO = /bin/echo
VERSION_FILE = VERSION.hime
DIR = src data filter scripts icons man menu
ifeq ($(USE_I18N),Y)
DIR += po
endif
all:
@for d in $(DIR); do $(ECHO) -e "\x1b[1;33m** processing $$d\x1b[0m"; \
$(MAKE) -C $$d; \
done
install:
@for d in $(DIR); do $(ECHO) -e "\x1b[1;32m** installing $$d\x1b[0m"; \
$(MAKE) -C $$d install; \
done
@if [ $(prefix) = /usr/local ]; then \
install -m 644 icons/hime.png /usr/share/pixmaps; \
install -d $(DOC_DIR); \
install -m 644 README.html ChangeLog $(DOC_DIR); \
else \
install -d $(DOC_DIR_i); \
install -m 644 README.html ChangeLog $(DOC_DIR_i); \
fi
clean:
@touch src/.depend
@for d in $(DIR); do $(ECHO) -e "\x1b[1;31m** cleanup $$d\x1b[0m"; \
$(MAKE) -C $$d clean; \
done
distclean:
@$(MAKE) clean
@rm -f config.mak
config.mak: $(VERSION_FILE) configure
@$(ECHO) "regenerate $@ ..."
./configure