mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-21 21:05:34 +03:00
[BRANDING] add forgejo target to Makefile
The gitea target is kept as is, for the sake of compatibility with build systems that rely on it. The forgejo target creates a hard link with forgejo. (cherry picked from commitce156c7cb4
) (cherry picked from commitb2cb232825
) (cherry picked from commit85543c22bd
) (cherry picked from commit302955a20d
) (cherry picked from commit4b1be0858e
) (cherry picked from commitafed1a6e20
) (cherry picked from commite81304bcd1
) (cherry picked from commit479cd51a03
) (cherry picked from commit8baab7c0c1
) (cherry picked from commit5d25ad9f09
) (cherry picked from commitf36942789f
) (cherry picked from commit9abfbae8a0
) (cherry picked from commit079e0efb01
) (cherry picked from commit0f1b83005a
) (cherry picked from commit3cc227aaff
) (cherry picked from commit245310c682
) (cherry picked from commit3f83e30c93
) (cherry picked from commite2bdd6af3d
) (cherry picked from commitfb3ac3a20b
) (cherry picked from commit0ffbd46032
) (cherry picked from commit1ba9e954e2
) (cherry picked from commitd4bc10d1e7
) (cherry picked from commite54dc7293e
) (cherry picked from commitf50e5132d4
) (cherry picked from commit335abddaa0
) (cherry picked from commit61e80ffb1f
) (cherry picked from commit4832167235
) (cherry picked from commit1bbe7816b2
)
This commit is contained in:
parent
fe9659a579
commit
5e76094b80
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -811,6 +811,9 @@ security-check:
|
|||
$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
|
||||
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
||||
|
||||
forgejo: $(EXECUTABLE)
|
||||
ln -f $(EXECUTABLE) forgejo
|
||||
|
||||
static-executable: $(GO_SOURCES) $(TAGS_PREREQ)
|
||||
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags 'netgo osusergo $(TAGS)' -ldflags '-s -w -linkmode external -extldflags "-static" $(LDFLAGS)' -o $(EXECUTABLE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue