]> Nishi Git Mirror - sp.git/commitdiff
忘れた
author諏訪子 <suwako@076.moe>
Tue, 16 Apr 2024 04:33:38 +0000 (13:33 +0900)
committer諏訪子 <suwako@076.moe>
Tue, 16 Apr 2024 04:33:38 +0000 (13:33 +0900)
Makefile

index a8444ff81a257db83eb53367b20ff39314d72224..3cfb80fc5e721d81087bb8ad40d14a059649421d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,7 @@ clean:
        rm -f ${NAME}
 
 dist: clean
+       mkdir -p dist
        mkdir -p ${NAME}-${VERSION}
        cp -R LICENSE.txt Makefile README.md CHANGELOG.md \
                ${NAME}-completion.zsh ${NAME}.1 main.c src ${NAME}-${VERSION}
@@ -40,16 +41,19 @@ dist: clean
        rm -rf ${NAME}-${VERSION}
 
 release-openbsd:
+       mkdir -p release
        ${CC} ${CFLAGS} -o release/${NAME}-${VERSION}-openbsd-amd64 ${FILES} \
                -static -lgpgme -lcrypto -lc -lassuan -lgpg-error -lintl -liconv
        strip release/${NAME}-${VERSION}-openbsd-amd64
 
 release-freebsd:
+       mkdir -p release
        ${CC} ${CFLAGS} -o release/${NAME}-${version}-freebsd-amd64 ${FILES} \
                -static -lgpgme -lcrypto -lc -lassuan -lgpg-error -lthr -lintl
        strip release/${NAME}-${VERSION}-linux-amd64
 
 release-linux:
+       mkdir -p release
        ${CC} ${CFLAGS} -o release/${NAME}-${VERSION}-linux-amd64 ${FILES} \
                -static -lgpgme -lcrypto -lc -lassuan -lgpg-error
        strip release/${NAME}-${VERSION}-linux-amd64