Welcome to little lamb

Code » anopa » commit 4892238

Makefile: Minor tweaks re: .tgz creation

author Olivier Brunel
2015-04-06 16:53:56 UTC
committer Olivier Brunel
2015-04-06 16:53:56 UTC
parent 93f7b121feb1e8b08fc1f9d451acd7b3dc670b00

Makefile: Minor tweaks re: .tgz creation

- Minor fixes to {,dist}clean
- (Re)create package/deps.mak and man pages

Makefile +5 -4

diff --git a/Makefile b/Makefile
index 9aa60c3..8d7c360 100644
--- a/Makefile
+++ b/Makefile
@@ -43,13 +43,14 @@ ALL_SCRIPTS := $(LIBEXEC_SCRIPTS_TARGET) $(BIN_SCRIPTS_TARGET)
 all: $(ALL_LIBS) $(ALL_BINS) $(ALL_SCRIPTS) $(ALL_INCLUDES) $(DOC_TARGETS)
 
 clean:
-	@exec rm -f $(ALL_LIBS) $(ALL_BINS) $(BIN_SCRIPTS_TARGET) $(wildcard src/*/*.o src/*/*.lo) $(EXTRA_TARGETS)
+	@exec rm -f $(ALL_LIBS) $(ALL_BINS) $(ALL_SCRIPTS) $(wildcard src/*/*.o src/*/*.lo) $(EXTRA_TARGETS)
 
 distclean: clean
-	@exec rm -f config.mak src/include/${package}/config.h $(DOC_TARGETS)
+	@exec rm -f config.mak package/deps.mak src/include/${package}/config.h $(DOC_TARGETS)
 
-tgz: distclean
-	@. package/info && \
+tgz: distclean $(DOC_TARGETS)
+	@./tools/gen-deps.sh > package/deps.mak 2> /dev/null && \
+	. package/info && \
 	rm -rf /tmp/$$package-$$version && \
 	cp -a . /tmp/$$package-$$version && \
 	cd /tmp && \