chiark / gitweb /
[PATCH] fix build for very old versions of make.
[elogind.git] / Makefile
index 3b44b23359c78157a7bbe8d895780a29f5cadd39..d58569f5815d900230d9130d4ca650b943782ff4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,9 @@ udevdir = ${prefix}/udev
 # than the local version of klibc
 #USE_KLIBC = true
 
+# set up PWD so that older versions of make will work with our build.
+PWD = $(shell pwd)
+
 # If you are running a cross compiler, you may want to set this
 # to something more interesting, like "arm-linux-".  If you want
 # to compile vs uClibc, that can be done here as well.
@@ -364,7 +367,7 @@ install: install-config install-dbus-policy all
        $(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
        - ln -f -s ./udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
        - rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
-       - rm -f $(udevdir)/.udev.tdb
+       - rm -f $(DESTDIR)$(udevdir)/.udev.tdb
        - ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
        @extras="$(EXTRAS)" ; for target in $$extras ; do \
                echo $$target ; \