]> granicus.if.org Git - docbook-dsssl/commitdiff
handle missing VERSION error correctly
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 1 Mar 2008 14:24:39 +0000 (14:24 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 1 Mar 2008 14:24:39 +0000 (14:24 +0000)
contrib/samples/refentry/udev/Makefile

index 47481ea9af716a1fa79c6375144b79c18c3d584a..225fbf6dcc6a132c3a37040c1f7092264cadeea1 100644 (file)
@@ -17,9 +17,8 @@ all: man
 
 $(FILE):
 ifeq ($(VERSION),)
-       @echo 'See http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/'
-       @echo 'Specify a VERSION; e.g., "make VERSION=103" to download udev-103.tar.bz2'
-       @echo
+       $(warning See http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/)
+       $(error Specify a VERSION; e.g., "make VERSION=103" to download udev-103.tar.bz2)
 endif
        $(FTP) $(FTP_OPTS) "mget -O $(TMP) $(DIR)/$(DOWNLOAD_FILENAME); quit" $(HOST)
        (cd $(TMP); $(UNTAR) $(UNTAR_OPTS) $(DOWNLOAD_FILENAME))