[Frugalware-darcs] setup-current: added a "final" target

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:59:40 CET 2006


[added a "final" target
VMiklos <vmiklos at frugalware.org>**20051104200450
 this way we can debug the code no only on the target system
] {
hunk ./Makefile 104
-	$(MAKE) -C src
+	$(MAKE) -C src final
hunk ./src/Makefile 6
+CFLAGS += $(FINAL)
hunk ./src/Makefile 17
+
+final:
+	$(MAKE) FINAL="-DFINAL"
hunk ./src/setup.h 11
+#ifdef FINAL
+#define PLUGDIR "/lib/plugins"
+#else
hunk ./src/setup.h 15
+#endif
hunk ./src/util.c 90
-	// TODO
+#ifdef FINAL
+	system(g_strdup_printf("/sbin/reboot >%s 2>%s", LOGDEV, LOGDEV));
+#else
hunk ./src/util.c 94
+#endif
}


More information about the Frugalware-darcs mailing list