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 66eda99490ef788086fbadb2ffd2d3a7ac10eefb..0213c3846dca0798713bf2b001265714e6d8b05e 100644 (file)
@@ -297,10 +297,14 @@ define install-relative-aliases
        done
 endef
 
        done
 endef
 
+install-touch-usr-hook:
+       touch -c $(DESTDIR)/$(prefix)
+
 INSTALL_EXEC_HOOKS += \
        install-target-wants-hook \
        install-directories-hook \
 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))
 
 # ------------------------------------------------------------------------------
 AM_V_M4 = $(AM_V_M4_$(V))