Build "mansdl" file instead of "mansdl.bin".

Make "install" and "uninstall" targets in Makefile.
Create PKGBUILD.
This commit is contained in:
Gabriel Bjørnager Jensen 2021-02-08 17:44:19 +01:00
parent 989e05eccb
commit 5f5ee12997
3 changed files with 26 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
*.bin
*.o
mansdl

View file

@ -21,9 +21,15 @@ SRCS_CXX = \
src/mansdl-genf.cc \
src/mansdl-init.cc
OBJS_CXX=$(SRCS_CXX:.cc=.o)
mansdl.bin: $(OBJS_CXX)
mansdl: $(OBJS_CXX)
$(CXX) $(LDFLAGS) -o $@ $(OBJS_CXX)
$(OBJS_CXX): $(HDRS_CXX) $(SRCS_CXX)
.PHONY: install
install:
cp mansdl /usr/bin/mansdl
.PHONY: uninstall
uninstall:
rm /usr/bin/mansdl
.PHONY: clean
clean:
rm mansdl.bin $(OBJ)
rm mansdl $(OBJ)

17
PKGBUILD Normal file
View file

@ -0,0 +1,17 @@
pkgname="mandelbrotsdl"
pkgver=6
pkgrel=1
pkgdesc="Real-time SDL2-based Mandelbrot viewer."
arch=("any")
url="https://git.achernar.dk/delta/mandelbrotsdl"
license=("AGPL3")
depends=("sdl2")
makedepends=("sdl2")
source=("git+https://git.achernar.dk/delta/mandelbrotsdl.git")
sha512sums=("SKIP")
build() {
make
}
package() {
make install
}