mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-08 11:57:44 +08:00
improve "make dist" and "make clean"
This commit is contained in:
parent
09ed0c5847
commit
476f3c0351
16
Makefile.am
16
Makefile.am
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user