X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=Makefile.common;h=87e43ef497a7c743af73376903d4c978df1d7ad8;hp=a7f36a2247b5810265ef7b2e53a46844a32adb8d;hb=f10c3dcbe75b5532d6646e24ecd25f5651a0c3a9;hpb=949ecae2e659ee76895debdf3e6b6bf01c7a4e3b diff --git a/Makefile.common b/Makefile.common index a7f36a2..87e43ef 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,10 +1,18 @@ +UNAME=$(shell uname) + +OS_AIX=$(shell expr "$(UNAME)" : '.*AIX.*') +OS_SUNOS=$(shell expr "$(UNAME)" : '.*SunOS.*') +OS_DARWIN=$(shell expr "$(UNAME)" : '.*Darwin.*') +OS_CYGWIN=$(shell expr "$(UNAME)" : '.*CYGWIN.*') + 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 +21,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