# Makefile for creating distribution of test package # Type 'make dist' for create tar-gziped archiv. # # Author: Lubomir Host 'rajo' /dev/null 2>&1 || :) #-include $(DEP_FILES) debug: .s.o: $(COMPILE) -c $< %.o: %.c $(CONFIG_HEADER) @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp clean: -rm -f *.o *.*~ core cpdf indent: -indent -kr -i8 *.{c,h} .PHONY: sources sources: @echo $(SOURCES:%=cfg/%) # Distribution targets {{{ dist: distdir GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) -rm -rf $(distdir) dist-all: distdir GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) -rm -rf $(distdir) distdir: $(DISTFILES) -rm -rf $(distdir) mkdir $(distdir) @here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; @FILES=`echo "$(DISTFILES)" | awk 'BEGIN{RS=" "}{print}' | sort -u`; \ for file in $$FILES; do \ d=$(srcdir); \ if test -d $$d/$$file; then \ mkdir $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done # }}} # vim600: fdm=marker fdc=3