5 # Makefile for the GNOKII tool suite.
7 # Copyright (C) 1999 Hugh Blemings & Pavel JanÃk ml.
14 # Makefile.global contains gnokii global settings
16 include ${TOPDIR}/Makefile.global
23 #BIN_DIRS += gnokiid utils
26 DIRS = common/phones \
39 @if [ "x$(USE_NLS)" = xyes ]; then \
40 $(MAKE) -C $(PO_DIR); \
43 @if [ "$(GTK_LIBS)" ]; then \
44 for dir in $(GTK_DIRS); do \
45 if [ -e $$dir/Makefile ]; then \
58 $(RM) *~ *.orig *.rej include/*~ include/*.orig include/*.rej
59 @for dir in $(DIRS); do \
60 if [ -e $$dir/Makefile ]; then \
61 $(MAKE) -C $$dir clean; \
64 @if [ "x$(USE_NLS)" = xyes ]; then \
65 $(MAKE) -C $(PO_DIR) clean; \
69 $(MAKE) -C getopt clean
72 @if [ "$(GTK_LIBS)" ]; then \
73 for dir in $(GTK_DIRS); do \
74 if [ -e $$dir/Makefile ]; then \
75 $(MAKE) -C $$dir clean; \
85 @if [ -e $(PO_DIR)/Makefile ]; then \
86 $(MAKE) -C $(PO_DIR) distclean; \
88 $(RM) Makefile.global config.cache config.log config.status \
91 packaging/RedHat/gnokii.spec \
94 $(RM) `$(FIND) . -name "*~"`
98 @for dir in $(DIRS); do \
99 if [ -e $$dir/Makefile ]; then \
100 $(MAKE) -C $$dir dep; \
104 @if [ "$(GTK_LIBS)" ]; then \
105 for dir in $(GTK_DIRS); do \
106 if [ -e $$dir/Makefile ]; then \
107 $(MAKE) -C $$dir dep; \
114 @for dir in $(DIRS); do \
115 if [ -e $$dir/Makefile ]; then \
116 $(MAKE) -C $$dir install; \
119 @if [ "x$(USE_NLS)" = xyes ]; then \
120 $(MAKE) -C $(PO_DIR) install; \
123 @if [ "$(GTK_LIBS)" ]; then \
124 for dir in $(GTK_DIRS); do \
125 if [ -e $$dir/Makefile ]; then \
126 $(MAKE) -C $$dir install; \
133 $(MAKE) -C $(DOCS_DIR) install
137 @for dir in $(BIN_DIRS); do \
138 if [ -e $$dir/Makefile ]; then \
139 $(MAKE) -C $$dir install-strip; \
143 @if [ "$(GTK_LIBS)" ]; then \
144 @for dir in $(GTK_DIRS); do \
145 if [ -e $$dir/Makefile ]; then \
146 $(MAKE) -C $$dir install-strip; \
153 @for dir in $(BIN_DIRS); do \
154 if [ -e $$dir/Makefile ]; then \
155 $(MAKE) -C $$dir install-suid; \
158 @if [ "$(GTK_LIBS)" ]; then \
159 @for dir in $(GTK_DIRS); do \
160 if [ -e $$dir/Makefile ]; then \
161 $(MAKE) -C $$dir install-suid; \
168 @for dir in $(BIN_DIRS); do \
169 if [ -e $$dir/Makefile ]; then \
170 $(MAKE) -C $$dir install-ss; \
174 @if [ "$(GTK_LIBS)" ]; then \
175 for dir in $(GTK_DIRS); do \
176 if [ -e $$dir/Makefile ]; then \
177 $(MAKE) -C $$dir install-ss; \
183 .PHONY: all install clean distclean dep depend install-docs