chiark / gitweb /
build-sys: touch /usr on "make install"
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Jun 2014 01:09:27 +0000 (03:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jun 2014 01:09:27 +0000 (03:09 +0200)
this way, the "make install" will be detected as offline update on next
boot.

Makefile.am

index 66eda99..0213c38 100644 (file)
@@ -297,10 +297,14 @@ define install-relative-aliases
        done
 endef
 
+install-touch-usr-hook:
+       touch -c $(DESTDIR)/$(prefix)
+
 INSTALL_EXEC_HOOKS += \
        install-target-wants-hook \
        install-directories-hook \
-       install-aliases-hook
+       install-aliases-hook \
+       install-touch-usr-hook
 
 # ------------------------------------------------------------------------------
 AM_V_M4 = $(AM_V_M4_$(V))