forked from abstrakraft/cwiid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
53 lines (36 loc) · 1.12 KB
/
Makefile.in
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
53
#Copyright (C) 2007 L. Donnie Smith
include @top_builddir@/defs.mak
LIB_DIRS = libcwiid
BIN_DIRS = wmgui wminput lswm
DOC_DIRS = man doc
ifdef PYTHON
BIND_DIRS = python
endif
SUB_DIRS = $(LIB_DIRS) $(BIN_DIRS) $(DOC_DIRS) $(BIND_DIRS) wmdemo
all install clean distclean uninstall: TARGET += $(MAKECMDGOALS)
all install clean distclean uninstall: $(BIN_DIRS) $(LIB_DIRS) $(BIND_DIRS)
install uninstall distclean: $(DOC_DIRS)
all clean distclean: wmdemo
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
$(BIN_DIRS) $(BIND_DIRS): $(LIB_DIRS)
endif
endif
ifeq ($(MAKECMDGOALS),install)
$(BIN_DIRS) $(LIB_DIRS): $(CWIID_CONFIG_DIR) $(CWIID_PLUGINS_DIR)
endif
$(SUB_DIRS):
$(MAKE) $(TARGET) -C $@
$(CWIID_CONFIG_DIR):
install -d $(CWIID_CONFIG_DIR)
$(CWIID_PLUGINS_DIR):
install -d $(CWIID_PLUGINS_DIR)
distclean:
rm -rf Makefile config.log config.status autom4te.cache \
defs.mak $(COMMON)/include/lib.mak $(COMMON)/include/config.h
uninstall:
rm -r $(CWIID_PLUGINS_DIR); true
uninstall_config:
rm -rf $(CWIID_CONFIG_DIR)
.PHONY: all install clean distclean uninstall uninstall_config $(SUB_DIRS)
.NOTPARALLEL: