forked from hime-ime/hime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 958 Bytes
/
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
43
44
45
46
47
48
include config.mak
VERSION_FILE = ChangeLog
DIR = src data filter scripts icons man menu
ifeq ($(ECHO),)
ECHO := $(shell whereis -b echo | awk '{print $$2}')
ifeq ($(ECHO),)
ECHO = echo
endif
endif
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 || exit 1; \
done
install:
@for d in $(DIR); do $(ECHO) -e "\x1b[1;32m** installing $$d\x1b[0m"; \
$(MAKE) -C $$d install || exit 1; \
done
@if [ $(prefix) = /usr/local ]; then \
install -d $(DOC_DIR); \
install -m 644 ChangeLog $(DOC_DIR); \
else \
install -d $(DOC_DIR_i); \
install -m 644 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