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 += mgnetd/mg_demo_client
31 # For now gnokiid and utils only make sense on Unix like systems.
32 # Some other stuff that makes only sense on Win32 platform.
46 @if [ "x$(USE_NLS)" = xyes ]; then \
47 $(MAKE) -C $(PO_DIR); \
50 @if [ "$(GTK_LIBS)" ]; then \
51 for dir in $(GTK_DIRS); do \
52 if [ -e $$dir/Makefile ]; then \
60 @for dir in $(DIRS); do \
61 if [ -e $$dir/Makefile ]; then \
62 $(MAKE) -C $$dir makelib; \
65 @if [ "x$(USE_NLS)" = xyes ]; then \
66 $(MAKE) -C $(PO_DIR) makelib; \
69 @if [ "$(GTK_LIBS)" ]; then \
70 for dir in $(GTK_DIRS); do \
71 if [ -e $$dir/Makefile ]; then \
72 $(MAKE) -C $$dir makelib; \
84 $(RM) *~ *.orig *.rej include/*~ include/*.orig include/*.rej
85 @for dir in $(DIRS); do \
86 if [ -e $$dir/Makefile ]; then \
87 $(MAKE) -C $$dir clean; \
90 @if [ "x$(USE_NLS)" = xyes ]; then \
91 $(MAKE) -C $(PO_DIR) clean; \
95 $(MAKE) -C getopt clean
98 @if [ "$(GTK_LIBS)" ]; then \
99 for dir in $(GTK_DIRS); do \
100 if [ -e $$dir/Makefile ]; then \
101 $(MAKE) -C $$dir clean; \
106 $(MAKE) -C Docs clean
111 @if [ -e $(PO_DIR)/Makefile ]; then \
112 $(MAKE) -C $(PO_DIR) distclean; \
114 $(RM) Makefile.global config.cache config.log config.status \
116 include/config.h.in \
117 packaging/RedHat/gnokii.spec \
118 packaging/Slackware/SlackBuild \
123 @for dir in $(DIRS); do \
124 if [ -e $$dir/Makefile ]; then \
125 $(MAKE) -C $$dir dep; \
129 @if [ "$(GTK_LIBS)" ]; then \
130 for dir in $(GTK_DIRS); do \
131 if [ -e $$dir/Makefile ]; then \
132 $(MAKE) -C $$dir dep; \
139 @for dir in $(DIRS); do \
140 if [ -e $$dir/Makefile ]; then \
141 $(MAKE) -C $$dir install; \
144 @if [ "x$(USE_NLS)" = xyes ]; then \
145 $(MAKE) -C $(PO_DIR) install; \
148 @if [ "$(GTK_LIBS)" ]; then \
149 for dir in $(GTK_DIRS); do \
150 if [ -e $$dir/Makefile ]; then \
151 $(MAKE) -C $$dir install; \
158 $(MAKE) -C $(DOCS_DIR) install
162 @for dir in $(BIN_DIRS); do \
163 if [ -e $$dir/Makefile ]; then \
164 $(MAKE) -C $$dir install-strip; \
168 @if [ "$(GTK_LIBS)" ]; then \
169 @for dir in $(GTK_DIRS); do \
170 if [ -e $$dir/Makefile ]; then \
171 $(MAKE) -C $$dir install-strip; \
178 @for dir in $(BIN_DIRS); do \
179 if [ -e $$dir/Makefile ]; then \
180 $(MAKE) -C $$dir install-suid; \
183 @if [ "$(GTK_LIBS)" ]; then \
184 @for dir in $(GTK_DIRS); do \
185 if [ -e $$dir/Makefile ]; then \
186 $(MAKE) -C $$dir install-suid; \
193 @for dir in $(BIN_DIRS); do \
194 if [ -e $$dir/Makefile ]; then \
195 $(MAKE) -C $$dir install-ss; \
199 @if [ "$(GTK_LIBS)" ]; then \
200 for dir in $(GTK_DIRS); do \
201 if [ -e $$dir/Makefile ]; then \
202 $(MAKE) -C $$dir install-ss; \
208 .PHONY: all install clean distclean dep depend install-docs