SVN: rc-scripts/trunk/Makefile.am

baggins baggins at pld-linux.org
Tue Apr 3 22:21:55 CEST 2012


Author: baggins
Date: Tue Apr  3 22:21:54 2012
New Revision: 12537

Modified:
   rc-scripts/trunk/Makefile.am
Log:
- add uninstall-hook, don't we just love autocrap crapiness?


Modified: rc-scripts/trunk/Makefile.am
==============================================================================
--- rc-scripts/trunk/Makefile.am	(original)
+++ rc-scripts/trunk/Makefile.am	Tue Apr  3 22:21:54 2012
@@ -37,6 +37,9 @@
 	install -d $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)
 	[ -f $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache ] || touch $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache
 
+uninstall-hook:
+	[ -f $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache ] && rm -f $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache
+
 # make rpms
 rpm: $(PACKAGE).spec
 	$(MAKE) dist


More information about the pld-cvs-commit mailing list