From 2ef55e68fd39231e631d51c703b8d8194c4744f9 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 29 Jun 2022 16:31:14 +0530 Subject: Makefile: Preserve directory structure during installation. * Makefile (install): Preserve directory structure when installing sources and objects. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2d5803b..b3838f0 100644 --- a/Makefile +++ b/Makefile @@ -47,8 +47,9 @@ check: ; install: install -D $(scripts) --target-directory $(bindir) - install -D $(sources) --target-directory $(scmdir) - install -D $(objects) --target-directory $(godir) + mkdir -p $(scmdir) $(godir) + cp --parents -vr $(sources) $(scmdir) + cp --parents -vr $(objects) $(godir) clean: rm -f $(objects) -- cgit v1.2.3