Skip to content

Commit

Permalink
build: move Makefile.prog, slightly refactor metabuild
Browse files Browse the repository at this point in the history
There's no need for Makefile.prog to be at the top level.
  • Loading branch information
gperciva committed Mar 22, 2021
1 parent 9adfc7d commit 28d5e47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
File renamed without changes.
14 changes: 10 additions & 4 deletions release-tools/metabuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ copyvar() {
}

add_makefile_prog() {
# Get a copy of the default Makefile.prog
cp ${SUBDIR_DEPTH}/release-tools/Makefile.prog prog.tmp

# Remove the "install:" (if applicable)
if [ "$(${MAKEBSD} -V NOINST)" = "1" ]; then
perl -0pe 's/(install:.*?)\n\n//s' \
${SUBDIR_DEPTH}/Makefile.prog >> $OUT
else
cat ${SUBDIR_DEPTH}/Makefile.prog >> $OUT
perl -0pe 's/(install:.*?)\n\n//s' prog.tmp > prog.tmp1
mv prog.tmp1 prog.tmp
fi

# Add the (adjusted) Makefile.prog to the Makefile, and clean up
cat prog.tmp >> $OUT
rm prog.tmp
}

get_cpusupport_cflags() {
Expand Down

0 comments on commit 28d5e47

Please sign in to comment.