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
21 ###BIN_DIRS += gnokiid
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.
48 @if [ "x$(USE_NLS)" = xyes ]; then \
49 $(MAKE) -C $(PO_DIR); \
52 @if [ "$(GTK_LIBS)" ]; then \
53 for dir in $(GTK_DIRS); do \
54 if [ -e $$dir/Makefile ]; then \
62 @for dir in $(DIRS); do \
63 if [ -e $$dir/Makefile ]; then \
64 $(MAKE) -C $$dir makelib; \
67 @if [ "x$(USE_NLS)" = xyes ]; then \
68 $(MAKE) -C $(PO_DIR) makelib; \
71 @if [ "$(GTK_LIBS)" ]; then \
72 for dir in $(GTK_DIRS); do \
73 if [ -e $$dir/Makefile ]; then \
74 $(MAKE) -C $$dir makelib; \
86 $(RM) *~ *.orig *.rej include/*~ include/*.orig include/*.rej
87 @for dir in $(DIRS); do \
88 if [ -e $$dir/Makefile ]; then \
89 $(MAKE) -C $$dir clean; \
92 @if [ "x$(USE_NLS)" = xyes ]; then \
93 $(MAKE) -C $(PO_DIR) clean; \
97 $(MAKE) -C getopt clean
100 @if [ "$(GTK_LIBS)" ]; then \
101 for dir in $(GTK_DIRS); do \
102 if [ -e $$dir/Makefile ]; then \
103 $(MAKE) -C $$dir clean; \
108 $(MAKE) -C Docs clean
113 @if [ -e $(PO_DIR)/Makefile ]; then \
114 $(MAKE) -C $(PO_DIR) distclean; \
116 $(RM) Makefile.global config.cache config.log config.status \
118 include/config.h.in \
119 packaging/RedHat/gnokii.spec \
120 packaging/Slackware/SlackBuild \
125 @for dir in $(DIRS); do \
126 if [ -e $$dir/Makefile ]; then \
127 $(MAKE) -C $$dir dep; \
131 @if [ "$(GTK_LIBS)" ]; then \
132 for dir in $(GTK_DIRS); do \
133 if [ -e $$dir/Makefile ]; then \
134 $(MAKE) -C $$dir dep; \
141 @for dir in $(DIRS); do \
142 if [ -e $$dir/Makefile ]; then \
143 $(MAKE) -C $$dir install; \
146 @if [ "x$(USE_NLS)" = xyes ]; then \
147 $(MAKE) -C $(PO_DIR) install; \
150 @if [ "$(GTK_LIBS)" ]; then \
151 for dir in $(GTK_DIRS); do \
152 if [ -e $$dir/Makefile ]; then \
153 $(MAKE) -C $$dir install; \
160 $(MAKE) -C $(DOCS_DIR) install
164 @for dir in $(BIN_DIRS); do \
165 if [ -e $$dir/Makefile ]; then \
166 $(MAKE) -C $$dir install-strip; \
170 @if [ "$(GTK_LIBS)" ]; then \
171 @for dir in $(GTK_DIRS); do \
172 if [ -e $$dir/Makefile ]; then \
173 $(MAKE) -C $$dir install-strip; \
180 @for dir in $(BIN_DIRS); do \
181 if [ -e $$dir/Makefile ]; then \
182 $(MAKE) -C $$dir install-suid; \
185 @if [ "$(GTK_LIBS)" ]; then \
186 @for dir in $(GTK_DIRS); do \
187 if [ -e $$dir/Makefile ]; then \
188 $(MAKE) -C $$dir install-suid; \
195 @for dir in $(BIN_DIRS); do \
196 if [ -e $$dir/Makefile ]; then \
197 $(MAKE) -C $$dir install-ss; \
201 @if [ "$(GTK_LIBS)" ]; then \
202 for dir in $(GTK_DIRS); do \
203 if [ -e $$dir/Makefile ]; then \
204 $(MAKE) -C $$dir install-ss; \
210 .PHONY: all install clean distclean dep depend install-docs