summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-29 16:31:14 +0530
committerArun Isaac2022-06-29 16:31:14 +0530
commit2ef55e68fd39231e631d51c703b8d8194c4744f9 (patch)
tree14fde5e353835197e0cf597f74dba75669839e80
parent2f893ae65bcd006cbdce866637f7fe66212ed6a6 (diff)
downloadtissue-2ef55e68fd39231e631d51c703b8d8194c4744f9.tar.gz
tissue-2ef55e68fd39231e631d51c703b8d8194c4744f9.tar.lz
tissue-2ef55e68fd39231e631d51c703b8d8194c4744f9.zip
Makefile: Preserve directory structure during installation.
* Makefile (install): Preserve directory structure when installing sources and objects.
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
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)