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