Skip to content

Commit

Permalink
copy contents of directories with hidden files
Browse files Browse the repository at this point in the history
  • Loading branch information
dvberkel committed Aug 25, 2024
1 parent 7ed9abb commit a19b77f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
public
public-build
build
workshop-material.tar.gz
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARCHIVE=workshop-material.tar.gz
MATERIAL_DIR=build
WEBPAGE_DIR=public
WEBPAGE_DIR=public-build
SUB_DIRECTORIES=workshop resources
CLEAN_TARGETS=$(addsuffix clean,$(SUB_DIRECTORIES))

Expand All @@ -12,25 +12,25 @@ ${ARCHIVE}: ${MATERIAL_DIR}

${MATERIAL_DIR}: ${SUB_DIRECTORIES} ${REFERENCE}
mkdir -p $@
cp -rf resources/material/* $@/
cp -rf workshop/guide/book $@/guide
cp -rfa resources/material/. $@/
cp -rfa workshop/guide/book $@/guide
mkdir -p $@/example
cp -rf workshop/example/* $@/example
cp -rf presentation $@/presentation
cp -rfa workshop/example/. $@/example
cp -rfa presentation $@/presentation

${SUB_DIRECTORIES}:
${MAKE} -C $@

${WEBPAGE_DIR}: ${MATERIAL_DIR} ${ARCHIVE}
mkdir -p $@
echo "<meta http-equiv=refresh content=0;url=guide/index.html>" > $@/index.html
cp -rf $</guide $@/guide
cp -rf $</presentation $@/presentation
cp resources/public/* $@/
cp -rfa $</guide $@/guide
cp -rfa $</presentation $@/presentation
cp -rfa resources/public/. $@/

docs/workshop: ${WEBPAGE_DIR}
mkdir -p $@
cp -rf $</* $@
cp -rfa $</* $@

clean: ${CLEAN_TARGETS}
rm -rf ${ARCHIVE} ${MATERIAL_DIR} ${WEBPAGE_DIR} docs/workshop
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions workshop/example/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is intentionally left blank

0 comments on commit a19b77f

Please sign in to comment.