r9727: 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
[clsql.git] / Makefile.common
index a7f36a2247b5810265ef7b2e53a46844a32adb8d..846a75425c6bd32d4911b6b9f36db69d3fbd1b1f 100644 (file)
@@ -4,7 +4,8 @@ all:
 .PHONY: clean
 clean:
        @rm -rf .bin
-       @rm -f *.ufsl *.fsl *.fas *.x86f *.sparcf *.fasl 
+       @rm -f *.ufsl *.fsl *.fas *.x86f *.sparcf *.fasl  *.pfsl *.dfsl
+       @rm -f *.fasla8 *.fasla16 *.faslm8 *.faslm16 *.faslmt
        @rm -f *~ *.bak *.orig *.err \#*\# .#*
        @rm -f *.so *.a
        @rm -rf debian/cl-sql
@@ -13,4 +14,10 @@ ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
                $(MAKE) -C $$i $@; done
 endif
 
+distclean: clean
+ifneq ($(SUBDIRS)$(DOCSUBDIRS),)
+       @set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do \
+               $(MAKE) -C $$i $@; done
+endif
+
 .SUFFIXES:            # No default suffixes