aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-09-12 14:21:14 +0200
committerKay Sievers <kay.sievers@suse.de>2005-09-12 14:21:14 +0200
commit17d3cb12882f71f19a78beb26054054628423703 (patch)
tree7dabe123477bab5c653b5b4f575cb17eb936ca8c /Makefile
parent7a526da67da5be9522af02c2c10511a088402356 (diff)
downloadudev-17d3cb12882f71f19a78beb26054054628423703.tar.gz
Makefile: cleanup install targets
Split into individual target and never remove any config file. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 17 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 07f57519..773041b0 100644
--- a/Makefile
+++ b/Makefile
@@ -194,6 +194,7 @@ ifeq ($(strip $(USE_KLIBC)),true)
LD = $(KLCC)
else
CFLAGS += -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+ LDFLAGS += -Wl,-warn-common
endif
ifeq ($(strip $(USE_SELINUX)),true)
@@ -227,6 +228,7 @@ all: $(KLCC) $(PROGRAMS) $(MAN_PAGES)
-C $$target $@; \
done;
.PHONY: all
+.DEFAULT: all
# clear implicit rules
.SUFFIXES:
@@ -288,8 +290,8 @@ ccdv: ccdv.c
.SILENT: ccdv
clean:
- -find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print | xargs rm -f
- -rm -f core $(PROGRAMS) $(GEN_HEADERS) $(GEN_CONFIGS)
+ - find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print0 | xargs -0rt rm -f
+ - rm -f core $(PROGRAMS) $(GEN_HEADERS) $(GEN_CONFIGS)
$(MAKE) -C klibc SUBDIRS=klibc clean
@extras="$(EXTRAS)"; for target in $$extras; do \
echo $$target; \
@@ -342,7 +344,7 @@ uninstall-man:
- rm $(mandir)/man8/udevcontrol.8
.PHONY: uninstall-man
-install: install-config install-man all
+install-bin:
$(INSTALL) -d $(DESTDIR)$(udevdir)
$(INSTALL_PROGRAM) -D udev $(DESTDIR)$(sbindir)/udev
$(INSTALL_PROGRAM) -D udevd $(DESTDIR)$(sbindir)/udevd
@@ -361,13 +363,9 @@ endif
echo $$target; \
$(MAKE) prefix=$(prefix) -C $$target $@; \
done;
-.PHONY: install
+.PHONY: install-bin
-uninstall: uninstall-man
- - rm $(configdir)/rules.d/50-udev.rules
- - rm $(configdir)/udev.conf
- - rmdir $(configdir)/rules.d
- - rmdir $(configdir)
+uninstall-bin:
- rm $(sbindir)/udev
- rm $(sbindir)/udevd
- rm $(sbindir)/udevsend
@@ -379,16 +377,24 @@ uninstall: uninstall-man
- rm $(usrbindir)/udevinfo
- rm $(usrbindir)/udevtest
- rm -rf $(udevdb)
- - rmdir $(udevdir)
- killall udevd
@extras="$(EXTRAS)"; for target in $$extras; do \
echo $$target; \
$(MAKE) prefix=$(prefix) -C $$target $@; \
done;
-.PHONY: uninstall-man
+.PHONY: uninstall-bin
+
+install: all install-bin install-config install-man
+.PHONY: install
+
+uninstall: uninstall-bin uninstall-man
+.PHONY: uninstall
test tests: all
@ cd test && ./udev-test.pl
@ cd test && ./udevstart-test.pl
.PHONY: test tests
+buildtest:
+ ./test/simple-build-check.sh
+