[Debburn-changes] r324 - nonameyet/trunk

Eduard Bloch blade at costa.debian.org
Thu Sep 21 22:57:17 UTC 2006


Author: blade
Date: 2006-09-21 22:57:16 +0000 (Thu, 21 Sep 2006)
New Revision: 324

Modified:
   nonameyet/trunk/Makefile
Log:
Changed the makefile to use the last-resort rule to delegate the target calls

Modified: nonameyet/trunk/Makefile
===================================================================
--- nonameyet/trunk/Makefile	2006-09-21 21:21:04 UTC (rev 323)
+++ nonameyet/trunk/Makefile	2006-09-21 22:57:16 UTC (rev 324)
@@ -21,16 +21,8 @@
 	rm */Makefile */*/Makefile
 
 clean:
-#	-cd build && make clean
-#	rm -f include/xconfig.h include/align.h
 	rm -rf build
 
-%: build/Makefile
-ifneq ($(CFLAGS),)
-	cmake build -DCMAKE_C_FLAGS="$(CFLAGS)"
-endif
-	$(MAKE) -C build $(MAKE_FLAGS) $@
-
 ifneq ($(PREFIX),)
 install: build/Makefile
 	cd build && cmake .. -DCMAKE_INSTALL_PREFIX="$(PREFIX)" && $(MAKE) $(MAKE_FLAGS) install
@@ -47,4 +39,9 @@
 	rm -rf tmp
 	test -e /etc/debian_version && ln -f ../$(DISTNAME).tar.gz ../cdrkit_$(shell cat VERSION | sed -e "s,pre,~pre,").orig.tar.gz || true
 
-
+%::
+	$(MAKE) build/Makefile
+ifneq ($(CFLAGS),)
+	cmake build -DCMAKE_C_FLAGS="$(CFLAGS)"
+endif
+	$(MAKE) -C build $(MAKE_FLAGS) $@




More information about the Debburn-changes mailing list