Skip to content

Instantly share code, notes, and snippets.

@bertrandmartel
Last active August 29, 2015 14:20
Show Gist options
  • Save bertrandmartel/31c86c66b818b6df2cb0 to your computer and use it in GitHub Desktop.
Save bertrandmartel/31c86c66b818b6df2cb0 to your computer and use it in GitHub Desktop.
[ SHELL - MAKEFILE ] Copy only headers file in release folder without putting project directory tree inside
rsync -avm --include=*/ --include=*.h --exclude=* project/ project/release
# >ls release
# project_subdir1
# project_subdir2
# project_subdir3
# executable
# for qmake QMAKE_POST_LINK +=$$quote(rsync -avm --include=*/ --include=*.h --exclude=* $${PWD}/ $${PWD}/$${DESTDIR})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment