Skip to content

Commit

Permalink
Adjusted indent in recept
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Kalatozishvili committed Aug 12, 2023
1 parent d2f7f9d commit 7f449f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#define SMAKE_VERSION_MAX 1
#define SMAKE_VERSION_MIN 1
#define SMAKE_BUILD_NUMBER 15
#define SMAKE_BUILD_NUMBER 16

#ifndef _SMAKE_VERSION_H_
#define _SMAKE_VERSION_H_
Expand Down
4 changes: 2 additions & 2 deletions src/make.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ xbool_t SMake_WriteMake(smake_ctx_t *pCtx)
XArray_Sort(&pCtx->pathArr, SMake_CompareLen, NULL);
SMake_SerializeArray(&pCtx->pathArr, ":", sVPath, sizeof(sVPath));

const char *pFPICOption = bShared ? "-fPIC" : XSTR_EMPTY;
const char *pFPICOption = bShared ? " -fPIC" : XSTR_EMPTY;
xbool_t bInstallIncludes = xstrused(pCtx->sHeaderDst);
xbool_t bInstallBinary = xstrused(pCtx->sBinaryDst);
int bVPathLen = strlen(sVPath);
Expand All @@ -475,7 +475,7 @@ xbool_t SMake_WriteMake(smake_ctx_t *pCtx)

XFile_Print(&file, "\n.%s.$(OBJ):\n", pCtx->bIsCPP ? "cpp" : "c");
XFile_Print(&file, "\t@test -d $(ODIR) || mkdir -p $(ODIR)\n");
XFile_Print(&file, "\t$(%s) $(%s) %s -c -o $(ODIR)/$@ $< $(LIBS)\n\n", pCompiler, pCFlags, pFPICOption);
XFile_Print(&file, "\t$(%s) $(%s)%s -c -o $(ODIR)/$@ $< $(LIBS)\n\n", pCompiler, pCFlags, pFPICOption);
XFile_Print(&file, "$(NAME):$(OBJS)\n");

if (bStatic) XFile_Print(&file, "\t$(AR) rcs -o $(ODIR)/$(NAME) $(OBJECTS)\n");
Expand Down

0 comments on commit 7f449f9

Please sign in to comment.