4223
|
1 .PHONY: all clean realclean distclean dist remake
|
|
2
|
|
3 include MakeSkel
|
|
4
|
|
5 $(OBJ:.o=.depend): %.depend: %.c %.h
|
|
6 $(DEPEND) $< >$@
|
|
7
|
|
8 -include $(OBJ:.o=.depend)
|
|
9
|
|
10 Makefile: MakeSkel GNUmakefile $(OBJ:.o=.depend)
|
|
11 $(RMF) Makefile
|
|
12 $(CP) MakeSkel Makefile
|
|
13 $(CAT) *.depend >>Makefile
|
|
14
|
|
15 .PHONY: dist
|
|
16 dist: Makefile tags distclean
|
|
17 plokidir="`$(BASENAME) \"\`$(PWD)\`\"`" \
|
|
18 version="`$(CAT) VERSION`" && \
|
|
19 cd .. && \
|
|
20 $(RMF) "ploki-$$version.tar$(ZIP_EXT)" && \
|
|
21 $(TAR) -cf "ploki-$$version.tar" --exclude-from="$$plokidir/IGNORE" "$$plokidir" && \
|
|
22 $(ZIP) "ploki-$$version.tar"
|