root/trunk/Makefile.in

Revision 137, 1.1 kB (checked in by dsmith, 1 year ago)

Added config.h header and with-python configure option

Line 
1 #Copyright (C) 2007 L. Donnie Smith
2
3 include @top_builddir@/defs.mak
4
5 LIB_DIRS = libcwiid
6 BIN_DIRS = wmgui wminput lswm
7 DOC_DIRS = man doc
8 ifdef PYTHON
9 BIND_DIRS = python
10 endif
11
12 SUB_DIRS = $(LIB_DIRS) $(BIN_DIRS) $(DOC_DIRS) $(BIND_DIRS) wmdemo
13
14 all install clean distclean uninstall: TARGET += $(MAKECMDGOALS)
15
16 all install clean distclean uninstall: $(BIN_DIRS) $(LIB_DIRS) $(BIND_DIRS)
17
18 install uninstall distclean: $(DOC_DIRS)
19
20 all clean distclean: wmdemo
21
22 ifneq ($(MAKECMDGOALS),clean)
23 ifneq ($(MAKECMDGOALS),distclean)
24 $(BIN_DIRS) $(BIND_DIRS): $(LIB_DIRS)
25 endif
26 endif
27
28 ifeq ($(MAKECMDGOALS),install)
29 $(BIN_DIRS) $(LIB_DIRS): $(CWIID_CONFIG_DIR) $(CWIID_PLUGINS_DIR)
30 endif
31
32 $(SUB_DIRS):
33         $(MAKE) $(TARGET) -C $@
34
35 $(CWIID_CONFIG_DIR):
36         install -d $(CWIID_CONFIG_DIR)
37
38 $(CWIID_PLUGINS_DIR):
39         install -d $(CWIID_PLUGINS_DIR)
40
41 distclean:
42         rm -rf Makefile config.log config.status autom4te.cache \
43                 defs.mak $(COMMON)/include/lib.mak $(COMMON)/include/config.h
44
45 uninstall:
46         rm -r $(CWIID_PLUGINS_DIR); true
47
48 uninstall_config:
49         rm -rf $(CWIID_CONFIG_DIR)
50
51 .PHONY: all install clean distclean uninstall uninstall_config $(SUB_DIRS)
52
53 .NOTPARALLEL:
Note: See TracBrowser for help on using the browser.