summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfo-cppsp <[email protected]>2017-11-25 14:59:52 +0100
committerinfo-cppsp <[email protected]>2017-11-25 15:41:43 +0100
commit1f2046d8b7a2588b18e54db2153c850ff3328e2b (patch)
treed69c638a7fdb0f7409b925ff57a053a18f1a52ef
parent6e568a41db4f833f59a08985576e1e1ceb3b4b93 (diff)
downloadmate-sensors-applet-1f2046d8b7a2588b18e54db2153c850ff3328e2b.tar.bz2
mate-sensors-applet-1f2046d8b7a2588b18e54db2153c850ff3328e2b.tar.xz
Fix project cleanup
Moved cleanup code from my autogenclean.sh to the main Makefile.am. Now, after ./autogen.sh, make, the 'make msa-clean' command removes ALL generated files.
-rw-r--r--Makefile.am20
-rw-r--r--autogenclean.sh17
2 files changed, 20 insertions, 17 deletions
diff --git a/Makefile.am b/Makefile.am
index 3776231..604865f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,6 +49,26 @@ DISTCLEANFILES = intltool-extract \
intltool-merge \
intltool-update
+MSACLEANFILES = aclocal.m4 \
+ compile \
+ config.* \
+ configure \
+ depcomp \
+ install-sh \
+ ltmain.sh \
+ missing \
+ omf.make \
+ xmldocs.make \
+ INSTALL \
+ $(top_srcdir)/sensors-applet/config.h*
+
+msa-clean: maintainer-clean
+ -test -z "$(MSACLEANFILES)" || rm -f $(MSACLEANFILES)
+ -rm -rf m4;
+ find . -name "Makefile.in" -exec rm \{\} \;
+
+.PHONY: msa-clean
+
# Build ChangeLog from GIT history
ChangeLog:
$(AM_V_GEN) if test -d $(top_srcdir)/.git; then \
diff --git a/autogenclean.sh b/autogenclean.sh
deleted file mode 100644
index d6a31c8..0000000
--- a/autogenclean.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash -e
-#
-# deletes compile files, so that I can upload the whole folder to github
-# use make clean first
-
-find . -name "Makefile" -exec rm {} \;
-find . -name "Makefile.in" -exec rm {} \;
-find . -name "autom4te.cache" -exec rm -r {} \;
-find . -name ".deps" -exec rm -r {} \;
-find . -name "m4" -exec rm -r {} \;
-find . -name "*.gmo" -exec rm {} \;
-find . -name "POTFILES" -exec rm {} \;
-find . -name "Makefile.in.in" -exec rm {} \;
-find . -name "stamp-it" -exec rm {} \;
-rm ./sensors-applet/config.h*;
-rm ./sensors-applet/stamp-h1;
-rm ./aclocal.m4 ./compile ./config.* ./configure ./depcomp ./install-sh ./libtool ./ltmain.sh ./missing ./omf.make ./xmldocs.make ./INSTALL;