commit 6bd5e792b1104b952105cf5ad406abfd6f3f8d1b parent 157f056fd93b2dd5524f979394fe9f8fca45aed2 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Sat, 10 Feb 2024 20:04:12 +0100 Add a POSIX make It provides targets to automate [un]installation. A lint target uses shellcheck to check its sources Diffstat:
| A | Makefile | | | 33 | +++++++++++++++++++++++++++++++++ |
1 file changed, 33 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,33 @@ +# Copyright (C) 2023 |Méso|Star> (contact@meso-star.com) +# +# This program 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. +# +# This program 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 this program. If not, see <http://www.gnu.org/licenses/>. + +.POSIX: +.SUFFIXES: # Clean-up default inference rules + +# Default install directory +PREFIX = /usr/local + +# Nothing to do +default: + +install: + mkdir -p $(DESTDIR)$(PREFIX)/bin/ + cp git-wad $(DESTDIR)$(PREFIX)/bin/ + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/git-wad + +lint: + shellcheck -o all git-wad