- -find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print \
- | xargs rm -f
- -rm -f core $(ROOT) $(GEN_HEADERS) $(GEN_CONFIGS) $(HELPER) $(DAEMON) $(SENDER)
- $(MAKE) -C klibc clean
- @extras="$(EXTRAS)" ; for target in $$extras ; do \
- echo $$target ; \
- $(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \
- -C $$target $@ ; \
- done ; \
-
-DISTFILES = $(shell find . \( -not -name '.' \) -print | grep -v -e CVS -e "\.tar\.gz$" -e "\/\." -e releases -e BitKeeper -e SCCS -e "\.tdb$" -e test/sys | sort )
-DISTDIR := $(RELEASE_NAME)
-srcdir = .
-release: clean
- @echo "--------------------------cut here------------------------"
- @echo "cd .."
- @echo "rm -rf $(DISTDIR)"
- @echo "mkdir $(DISTDIR)"
- @echo "chmod 777 $(DISTDIR)"
- @echo "cp -avr udev/* $(DISTDIR)"
- @echo "tar -c $(DISTDIR) | gzip -9 > $(RELEASE_NAME).tar.gz"
- @echo "rm -rf $(DISTDIR)"
- @echo "--------------------------cut here------------------------"
-
-
-small_release: $(DISTFILES) clean
-# @echo $(DISTFILES)
- @-rm -rf $(DISTDIR)
- @mkdir $(DISTDIR)
- @-chmod 777 $(DISTDIR)
- @for file in $(DISTFILES); do \
- if test -d $$file; then \
- mkdir $(DISTDIR)/$$file; \
- else \
- cp -p $$file $(DISTDIR)/$$file; \
- fi; \
- done
- @tar -c $(DISTDIR) | gzip -9 > $(RELEASE_NAME).tar.gz
- @rm -rf $(DISTDIR)
- @echo "Built $(RELEASE_NAME).tar.gz"
-
-
-ifeq ($(USE_DBUS), true)
-install-dbus-policy:
- $(INSTALL) -d $(DESTDIR)$(dbusdir)
- $(INSTALL_DATA) etc/dbus-1/system.d/udev_sysbus_policy.conf $(DESTDIR)$(dbusdir)
-
-uninstall-dbus-policy:
- - rm $(DESTDIR)$(dbusdir)/udev_sysbus_policy.conf
-else
-install-dbus-policy:
- -
-uninstall-dbus-policy:
- -
-endif
+ -find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print | xargs 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; \
+ $(MAKE) prefix=$(prefix) -C $$target $@; \
+ done;
+.PHONY: clean
+
+spotless: clean
+ $(MAKE) -C klibc SUBDIRS=klibc spotless
+ rm -rf klibc/.install
+.PHONY: spotless
+
+release: spotless
+ git-tar-tree HEAD $(RELEASE_NAME) | gzip -9v > $(RELEASE_NAME).tar.gz
+ @echo "$(RELEASE_NAME).tar.gz created"
+.PHONY: release