improve "make dist" and "make clean"

This commit is contained in:
lins05 2013-02-04 19:34:30 +08:00
parent 09ed0c5847
commit 476f3c0351
2 changed files with 14 additions and 7 deletions

View File

@ -30,11 +30,6 @@ INTLTOOL = \
EXTRA_DIST = install-sh $(INTLTOOL) README.markdown web scripts debian msi LICENCE.txt
DISTCLEANFILES = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in
DISTCHECK_CONFIGURE_FLAGS = --enable-server --enable-httpserver
ACLOCAL_AMFLAGS = -I m4
@ -64,6 +59,17 @@ uninstall-web:
chmod u+rw -R $(DESTDIR)$(pkgdatadir)/web
-rm -rf $(DESTDIR)$(pkgdatadir)/web
dist-hook:
find $(distdir)/web -name '*.pyc' -o \
-name '*.sh' -o \
-name '*~' -o \
-name '*#' -o \
-name '*.mo' \
| xargs rm -f
clean-local:
rm -f po/*.gmo
if COMPILE_CLIENT
bin_SCRIPTS = seafile-web
install_web = install-web

View File

@ -37,7 +37,7 @@ seafile-object.h: ${seafile_object_define}
rm -f $@
valac --pkg posix ${seafile_object_define} -C -H seafile-object.h
DISTCLEANFILES = seafile-object.h ${seafile_object_gen} ${searpc_gen}
DISTCLEANFILES = ${searpc_gen}
## library rules
lib_LTLIBRARIES = libseafile.la
@ -65,4 +65,5 @@ ${searpc_gen}: $(top_srcdir)/lib/rpc_table.py
@echo "[libsearpc]: done"
clean-local:
-rm ${searpc_gen}
rm -f ${searpc_gen}
rm -f $(top_srcdir)/lib/rpc_table.pyc