Skip to content

Commit

Permalink
Separated Makefile into both the BSD and the GNU versions
Browse files Browse the repository at this point in the history
BSD version (proxy to `GNUmakefile`) -> `BSDmakefile`
GNU version -> `GNUmakefile`
  • Loading branch information
iWas-Coder committed Apr 8, 2024
1 parent d19fddb commit 1006f2f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- 'include/**'
- 'src/**'
- 'vendor/**'
- 'Makefile'
- 'BSDmakefile'
- 'GNUmakefile'
- 'config.mk'
pull_request:
branches: [master]
Expand All @@ -16,7 +17,8 @@ on:
- 'include/**'
- 'src/**'
- 'vendor/**'
- 'Makefile'
- 'BSDmakefile'
- 'GNUmakefile'
- 'config.mk'
schedule:
- cron: '0 0 * * 1'
Expand Down
26 changes: 26 additions & 0 deletions BSDmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# GNU Sparky --- A 5v5 character-based libre tactical shooter
# Copyright (C) 2024 Wasym A. Alonso
#
# This file is part of Sparky.
#
# Sparky is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Sparky is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Sparky. If not, see <http://www.gnu.org/licenses/>.
#


.PHONY: all

all:
@which gmake >/dev/null 2>&1 || (echo "ERROR: *** GNU make is required for Sparky to build. Stop." && exit 1)
@gmake ${.FLAGS} ${.TARGETS}
File renamed without changes.

0 comments on commit 1006f2f

Please sign in to comment.