| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0000028 | OLSRd | Core | public | 2012-04-05 20:15 | 2012-05-05 12:00 |
|
| Reporter | hans | |
| Assigned To | Henning | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | |
| Platform | | OS | | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0000028: add a 'make distclean' target to provide a standard uberclean method |
| Description | Packaging systems like Debian, Fedora, etc. rely on standard target names like "make clean", "make distclean", "make install", etc. Having these makes a project much easier to package. The attached patch makes 'make uberclean' also clean the gui stuff, then adds 'make distclean' as an alias to 'make uberclean'.
This patch applies on today's HEAD of the stable branch. |
| Tags | No tags attached. |
|
| Attached Files | 0004-add-a-make-distclean-target-to-provide-a-standard-ub.patch [^] (1,716 bytes) 2012-04-05 20:15 [Show Content] [Hide Content]From d155b5a3e963ee96e72ac0e93fae9b0e2bb79699 Mon Sep 17 00:00:00 2001
From: Hans-Christoph Steiner <hans@eds.org>
Date: Thu, 2 Feb 2012 15:52:33 -0500
Subject: [PATCH 4/7] add a 'make distclean' target to provide a standard uberclean method
- uberclean should also clean the gui stuff
- packaging systems like Debian, Fedora, etc. rely on standard target name
like "make clean", "make distclean". Having these makes a project much
easier to package.
---
Makefile | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index c3ffb17..a517983 100644
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,7 @@ src/builddata.c:
@echo "const char build_host[] = \"$(shell hostname)\";" >> "$@"
-.PHONY: help libs clean_libs libs_clean clean uberclean install_libs uninstall_libs libs_install libs_uninstall install_bin uninstall_bin install_olsrd uninstall_olsrd install uninstall build_all install_all uninstall_all clean_all
+.PHONY: help libs clean_libs libs_clean clean distclean uberclean install_libs uninstall_libs libs_install libs_uninstall install_bin uninstall_bin install_olsrd uninstall_olsrd install uninstall build_all install_all uninstall_all clean_all
clean:
-rm -f $(OBJS) $(SRCS:%.c=%.d) $(EXENAME) $(EXENAME).exe src/builddata.c $(TMPFILES)
@@ -93,7 +93,11 @@ clean:
-rm -fr gui/win32/Main/Release
-rm -fr gui/win32/Shim/Release
-uberclean: clean clean_libs
+clean_gui:
+ $(MAKE) -C gui/linux-gtk clean
+
+distclean: uberclean
+uberclean: clean clean_libs clean_gui
-rm -f $(TAGFILE)
# BSD-xargs has no "--no-run-if-empty" aka "-r"
find . \( -name '*.[od]' -o -name '*~' \) -not -path "*/.hg*" -print0 | xargs -0 rm -f
--
1.7.4.1
|
|