
#include "XMakefile.inc"

all:
    xmake -f lib/XMakefile all
    xmake -f util/XMakefile all
    xmake -f sup/XMakefile all
    xmake -f contrib/XMakefile all

clean:
    xmake -f lib/XMakefile clean
    xmake -f util/XMakefile clean
    xmake -f sup/XMakefile clean
    xmake -f contrib/XMakefile clean

install: all
    xmake -f XMakefile.inst

dist: clean
    (cd ..; tar czf $(DIST)/diablo.tgz.new diablo)
    chmod 644 $(DIST)/diablo.tgz.new
    chown dillon $(DIST)/diablo.tgz.new
    chgrp dillon $(DIST)/diablo.tgz.new
    mv $(DIST)/diablo.tgz.new $(DIST)/diablo-$(VERS).tgz

