view src/ploki/GNUmakefile @ 8203:b0fcb29e2ce7

<b_jonas> learn Silent initial consonants in English are: write, wrong, wrist, wrap, wreck, wrest, wrestle, wriggle, wrinkle, wrath, wraith, wreath, wrangle, wren, wright, wrought, wring, writ, writhe, wry; know, knife, knock, knee, knight, knob, knot, knit, knack, knout, knuckle; psychology, psalm, pseudo, psychic, psionics; gnaw, gnash, gnome, gnu, gnat; pneumatic; mnemonic; chthonic; phthisis; bdellium.
author HackBot
date Sun, 29 May 2016 20:52:46 +0000
parents ac0403686959
children
line wrap: on
line source

.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"