chiark / gitweb /
add install test to 'make buildtest'
authorKay Sievers <kay.sievers@suse.de>
Wed, 14 Sep 2005 15:29:27 +0000 (17:29 +0200)
committerKay Sievers <kay.sievers@suse.de>
Wed, 14 Sep 2005 15:29:27 +0000 (17:29 +0200)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Makefile
extras/cdrom_id/Makefile
extras/scsi_id/Makefile
test/simple-build-check.sh

index 46d5365..c0e1e46 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -358,14 +358,14 @@ install-man:
 .PHONY: install-man
 
 uninstall-man:
-       - rm $(mandir)/man8/udev.8
-       - rm $(mandir)/man8/udevinfo.8
-       - rm $(mandir)/man8/udevtest.8
-       - rm $(mandir)/man8/udevstart.8
-       - rm $(mandir)/man8/udevd.8
-       - rm $(mandir)/man8/udevmonitor.8
-       - rm $(mandir)/man8/udevsend.8
-       - rm $(mandir)/man8/udevcontrol.8
+       - rm -f $(mandir)/man8/udev.8
+       - rm -f $(mandir)/man8/udevinfo.8
+       - rm -f $(mandir)/man8/udevtest.8
+       - rm -f $(mandir)/man8/udevstart.8
+       - rm -f $(mandir)/man8/udevd.8
+       - rm -f $(mandir)/man8/udevmonitor.8
+       - rm -f $(mandir)/man8/udevsend.8
+       - rm -f $(mandir)/man8/udevcontrol.8
        @extras="$(EXTRAS)"; for target in $$extras; do \
                echo $$target; \
                $(MAKE) prefix=$(prefix) -C $$target $@; \
@@ -394,16 +394,16 @@ endif
 .PHONY: install-bin
 
 uninstall-bin:
-       - rm $(sbindir)/udev
-       - rm $(sbindir)/udevd
-       - rm $(sbindir)/udevsend
-       - rm $(sbindir)/udevinitsend
-       - rm $(sbindir)/udeveventrecoreder
-       - rm $(sbindir)/udevcontrol
-       - rm $(sbindir)/udevstart
-       - rm $(usrsbindir)/udevmonitor
-       - rm $(usrbindir)/udevinfo
-       - rm $(usrbindir)/udevtest
+       - rm -f $(sbindir)/udev
+       - rm -f $(sbindir)/udevd
+       - rm -f $(sbindir)/udevsend
+       - rm -f $(sbindir)/udevinitsend
+       - rm -f $(sbindir)/udeveventrecoreder
+       - rm -f $(sbindir)/udevcontrol
+       - rm -f $(sbindir)/udevstart
+       - rm -f $(usrsbindir)/udevmonitor
+       - rm -f $(usrbindir)/udevinfo
+       - rm -f $(usrbindir)/udevtest
        - rm -rf $(udevdb)
        - killall udevd
        @extras="$(EXTRAS)"; for target in $$extras; do \
index 3e91d4f..c3ee6e3 100644 (file)
@@ -65,10 +65,3 @@ uninstall-man:
 install-config:
        @echo "no config file to install"
 .PHONY: install-config
-
-install: all install-bin install-config install-man
-.PHONY: install
-
-uninstall: uninstall-bin uninstall-man
-.PHONY: uninstall
-
index bb3422a..85f6ff6 100644 (file)
@@ -37,8 +37,6 @@ CC = $(CROSS)gcc
 LD = $(CROSS)gcc
 AR = $(CROSS)ar
 STRIPCMD = $(CROSS)strip
-RANLIB = $(CROSS)ranlib
-HOSTCC = gcc
 CFLAGS += -Wall -pipe -fno-builtin -Wstrict-prototypes -Wsign-compare -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
 LDFLAGS += -Wl
 
@@ -90,4 +88,8 @@ install-config:
        fi
 .PHONY: install-config
 
+install: all install-bin install-config install-man
+.PHONY: install
 
+uninstall: uninstall-bin uninstall-man
+.PHONY: uninstall
index 8becb0b..e69c645 100755 (executable)
@@ -15,24 +15,35 @@ EXTRAS="\
 [ -z "$KERNEL_DIR" ] && KERNEL_DIR=/lib/modules/`uname -r`/build
 echo KERNEL_DIR: "$KERNEL_DIR"
 
-make spotless EXTRAS="$EXTRAS" >/dev/null
-make all $MAKEOPTS EXTRAS="$EXTRAS" || exit
-echo -e "\n\n"
-
+# with debug
 make spotless EXTRAS="$EXTRAS" >/dev/null
 make all -j4 $MAKEOPTS DEBUG=true EXTRAS="$EXTRAS"  || exit
 echo -e "\n\n"
 
+# without any logging
 make spotless EXTRAS="$EXTRAS" >/dev/null
 make all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS"  || exit
 echo -e "\n\n"
 
+# klibc and debug
 make spotless EXTRAS="$EXTRAS" >/dev/null
 make all -j4 $MAKEOPTS USE_KLIBC=true DEBUG=true EXTRAS="$EXTRAS" KERNEL_DIR="$KERNEL_DIR" || exit
 echo -e "\n\n"
 
+# klibc without logging
 make spotless EXTRAS="$EXTRAS" >/dev/null
 make all $MAKEOPTS USE_KLIBC=true USE_LOG=false EXTRAS="$EXTRAS" KERNEL_DIR="$KERNEL_DIR" || exit
 echo -e "\n\n"
 
+# install in temporary dir and show it
+TEMPDIR="`pwd`/.tmp"
+rm -rf $TEMPDIR
+mkdir $TEMPDIR
+make spotless EXTRAS="$EXTRAS" >/dev/null
+make all $MAKEOPTS DESTDIR="$TEMPDIR" EXTRAS="$EXTRAS" || exit
+make install DESTDIR="$TEMPDIR" EXTRAS="$EXTRAS" || exit
+echo -e "\nInstalled tree:"
+find $TEMPDIR
+rm -rf $TEMPDIR
+
 make spotless EXTRAS="$EXTRAS" >/dev/null