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 utils
24 DIRS = common/phones \
37 @if [ "x$(USE_NLS)" = xyes ]; then \
38 $(MAKE) -C $(PO_DIR); \
41 @if [ "$(GTK_LIBS)" ]; then \
42 for dir in $(GTK_DIRS); do \
43 if [ -e $$dir/Makefile ]; then \
56 $(RM) *~ *.orig *.rej include/*~ include/*.orig include/*.rej
57 @for dir in $(DIRS); do \
58 if [ -e $$dir/Makefile ]; then \
59 $(MAKE) -C $$dir clean; \
62 @if [ "x$(USE_NLS)" = xyes ]; then \
63 $(MAKE) -C $(PO_DIR) clean; \
67 $(MAKE) -C getopt clean
70 @if [ "$(GTK_LIBS)" ]; then \
71 for dir in $(GTK_DIRS); do \
72 if [ -e $$dir/Makefile ]; then \
73 $(MAKE) -C $$dir clean; \
83 @if [ -e $(PO_DIR)/Makefile ]; then \
84 $(MAKE) -C $(PO_DIR) distclean; \
86 $(RM) Makefile.global config.cache config.log config.status \
89 packaging/RedHat/gnokii.spec \
90 packaging/Slackware/SlackBuild \
93 $(RM) `$(FIND) . -name "*~"`
97 @for dir in $(DIRS); do \
98 if [ -e $$dir/Makefile ]; then \
99 $(MAKE) -C $$dir dep; \
103 @if [ "$(GTK_LIBS)" ]; then \
104 for dir in $(GTK_DIRS); do \
105 if [ -e $$dir/Makefile ]; then \
106 $(MAKE) -C $$dir dep; \
113 @for dir in $(DIRS); do \
114 if [ -e $$dir/Makefile ]; then \
115 $(MAKE) -C $$dir install; \
118 @if [ "x$(USE_NLS)" = xyes ]; then \
119 $(MAKE) -C $(PO_DIR) install; \
122 @if [ "$(GTK_LIBS)" ]; then \
123 for dir in $(GTK_DIRS); do \
124 if [ -e $$dir/Makefile ]; then \
125 $(MAKE) -C $$dir install; \
132 $(MAKE) -C $(DOCS_DIR) install
136 @for dir in $(BIN_DIRS); do \
137 if [ -e $$dir/Makefile ]; then \
138 $(MAKE) -C $$dir install-strip; \
142 @if [ "$(GTK_LIBS)" ]; then \
143 @for dir in $(GTK_DIRS); do \
144 if [ -e $$dir/Makefile ]; then \
145 $(MAKE) -C $$dir install-strip; \
152 @for dir in $(BIN_DIRS); do \
153 if [ -e $$dir/Makefile ]; then \
154 $(MAKE) -C $$dir install-suid; \
157 @if [ "$(GTK_LIBS)" ]; then \
158 @for dir in $(GTK_DIRS); do \
159 if [ -e $$dir/Makefile ]; then \
160 $(MAKE) -C $$dir install-suid; \
167 @for dir in $(BIN_DIRS); do \
168 if [ -e $$dir/Makefile ]; then \
169 $(MAKE) -C $$dir install-ss; \
173 @if [ "$(GTK_LIBS)" ]; then \
174 for dir in $(GTK_DIRS); do \
175 if [ -e $$dir/Makefile ]; then \
176 $(MAKE) -C $$dir install-ss; \
182 .PHONY: all install clean distclean dep depend install-docs