fix memory leak as Dimitri suggested
[wxWidgets.git] / utils / HelpGen / Makefile.in
index 3e3d5388f5dfbce6f7f9fb0d27686858344fbcf7..cecec595bb79e1f166a1375e2bdcad9f452fb8c0 100644 (file)
@@ -1,7 +1,9 @@
 
+USE_GUI=@USE_GUI@
+
 all:
-       cd src; make
+       if test "$(USE_GUI)" = 0; then cd src; $(MAKE); fi
 
 clean:
-       cd src; make clean
+       cd src; $(MAKE) clean