VERSION = 0.0.1 NAME = libxslt-ocaml QNAME = $(NAME)-$(VERSION) DIST_DIRS = C ocaml test_files debian SOURCE_DIRS = C/gdome_xslt/ ocaml/gdome_xslt/ NODIST = CVS .cvsignore all: clean: -make -C ocaml/gdome_xslt/ distclean -make -C C/gdome_xslt/ clean dist: clean # copy dist stuff in dist dir mkdir $(QNAME)/ for d in $(DIST_DIRS); do \ cp -a $$d $(QNAME)/; \ done # remove garbage -for p in $(NODIST); do \ find $(QNAME)/ -name $$p -exec rm -rf {} \; 2> /dev/null; \ done # create tarball and remove distdir tar --remove-files -czf $(QNAME).tar.gz $(QNAME)/ rm -rf $(QNAME) .PHONY: all clean dist