view src/ploki/GNUmakefile @ 12500:e48c08805365 draft default tip

<b_jonas> ` learn \'The password of the month is Cthulhuquagdonic Mothraquagdonic Narwhalicorn.\' # https://logs.esolangs.org/libera-esolangs/2024-04.html#lKE Infinite craft
author HackEso <hackeso@esolangs.org>
date Wed, 01 May 2024 06:39:10 +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"