[Cdd-commits] r594 - projects/med/trunk/debian-med
CDD Subversion Commit
noreply at alioth.debian.org
Mon Mar 10 13:58:53 UTC 2008
Author: tille
Date: Mon Mar 10 13:58:53 2008
New Revision: 594
Modified:
projects/med/trunk/debian-med/Makefile
Log:
Inform user about missing cdd-dev package when trying to use makefile
Modified: projects/med/trunk/debian-med/Makefile
==============================================================================
--- projects/med/trunk/debian-med/Makefile (original)
+++ projects/med/trunk/debian-med/Makefile Mon Mar 10 13:58:53 2008
@@ -1,3 +1,13 @@
#!/usr/bin/make -f
-include /usr/share/cdd-dev/Makefile
+CDDMAKEFILE=/usr/share/cdd-dev/Makefile
+
+CheckCDDMakefile := $(shell if [ -e $(CDDMAKEFILE) ] ; then echo 1 ; else echo 0 ; fi)
+ifeq ($(CheckCDDMakefile),1)
+ include $(CDDMAKEFILE)
+else
+ err := $(shell echo "$(CDDMAKEFILE) is missing. Please install cdd-dev package!")
+endif
+
+dummy:
+ @echo $(err)
More information about the Cdd-commits
mailing list