binaries:
	if test ! -d bin;  then mkdir bin;  fi
	if test ! -d bin/@GAPARCH@;  then mkdir bin/@GAPARCH@;  fi
	( cd nauty22; rm -f *.o config.log config.cache config.status makefile; ./configure; make dreadnautB; mv dreadnautB ../bin/@GAPARCH@; chmod 755 ../bin/@GAPARCH@/dreadnautB; rm -f *.o )
	( cd src; make BINDIR="@GAPARCH@" )

others:
	if test ! -d bin;  then mkdir bin;  fi
	if test ! -d bin/@GAPARCH@;  then mkdir bin/@GAPARCH@;  fi
	( cd src; make BINDIR="@GAPARCH@" others )

clean:
	( cd nauty22; make clean )
	( cd src; make BINDIR="@GAPARCH@" clean )
