forked from Tetralet/LilyTerm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (43 loc) · 960 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
49
50
51
52
include .default
-include .config
DIR = src data
ifeq ($(NLS), Y)
DIR += po
endif
.PHONY: all
all: $(DIR)
.PHONY: src
src:
@ $(MAKE) -C src
.PHONY: data
data:
@ $(MAKE) -C data
.PHONY: po
po:
@ $(MAKE) -C po
clean:
@ $(MAKE) -C src clean
@ $(MAKE) -C data clean
@ $(MAKE) -C po clean
install: all
@ $(MAKE) -C src install
@ $(MAKE) -C data install
ifeq ($(NLS), Y)
@ $(MAKE) -C po install
endif
uninstall:
@ $(MAKE) -C src uninstall
@ $(MAKE) -C data uninstall
ifeq ($(NLS), Y)
@ $(MAKE) -C po uninstall
endif
@ if [ -z "`ls -A "$(DESTDIR)/$(PREFIX)"`" ]; then \
$(ECHO) "===========================================" ; \
$(PRINTF) "\033[1;31m** WARNING: \"$(DESTDIR)/$(PREFIX)\" is empty. Please remove it manually if necessary.\033[0m\n" ; \
$(ECHO) "===========================================" ; \
fi
distclean: clean
@ if [ -f .config ]; then \
$(PRINTF) "\033[1;35m** deleting .config...\033[0m\n" ; \
rm .config ; \
fi