Mercurial > repo
diff src/ploki/GNUmakefile @ 4223:ac0403686959
<oerjan> rm -rf src/ploki; mv ploki src
author | HackBot |
---|---|
date | Fri, 20 Dec 2013 22:18:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ploki/GNUmakefile Fri Dec 20 22:18:50 2013 +0000 @@ -0,0 +1,22 @@ +.PHONY: all clean realclean distclean dist remake + +include MakeSkel + +$(OBJ:.o=.depend): %.depend: %.c %.h + $(DEPEND) $< >$@ + +-include $(OBJ:.o=.depend) + +Makefile: MakeSkel GNUmakefile $(OBJ:.o=.depend) + $(RMF) Makefile + $(CP) MakeSkel Makefile + $(CAT) *.depend >>Makefile + +.PHONY: dist +dist: Makefile tags distclean + plokidir="`$(BASENAME) \"\`$(PWD)\`\"`" \ + version="`$(CAT) VERSION`" && \ + cd .. && \ + $(RMF) "ploki-$$version.tar$(ZIP_EXT)" && \ + $(TAR) -cf "ploki-$$version.tar" --exclude-from="$$plokidir/IGNORE" "$$plokidir" && \ + $(ZIP) "ploki-$$version.tar"