added build of .deb install file

This commit is contained in:
Thies Block 2021-03-23 02:19:09 +01:00
parent e6dcb27ecb
commit c2135dbf8b
No known key found for this signature in database
GPG Key ID: 3560E52BC0B3CA40
3 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ build/
.gdb_history .gdb_history
*.so *.so
*.deb
*.d *.d
*.a *.a

View File

@ -55,7 +55,7 @@ clean-depends:
$(RM) -r $(DEPF) $(RM) -r $(DEPF)
clean: clean:
$(RM) -r $(OUTF)$(NAME) $(BUILDDIR) $(NAMETEST) $(NAMESTATIC) $(RM) -r $(OUTF)$(NAME) $(BUILDDIR) $(NAMETEST) $(NAMESTATIC) $(NAMESHORT).deb
$(NAMETEST): $(TESTF)*.cpp $(NAMESTATIC) $(NAMETEST): $(TESTF)*.cpp $(NAMESTATIC)
@echo "Compiling tests" @echo "Compiling tests"
@ -65,6 +65,16 @@ runtest: $(NAMETEST)
@echo "Running tests" @echo "Running tests"
./$< ./$<
builddeb: $(NAME)
mkdir -p $(BUILDDIR)deb/$(NAMESHORT)/DEBIAN/
mkdir -p $(BUILDDIR)deb/$(NAMESHORT)/usr/lib/
mkdir -p $(BUILDDIR)deb/$(NAMESHORT)/usr/include/$(NAMESHORT)/
cp -f ./debconfig $(BUILDDIR)deb/$(NAMESHORT)/DEBIAN/control
cp -f ./$(NAME) $(BUILDDIR)deb/$(NAMESHORT)/usr/lib/
cp -rf $(INCF)* $(BUILDDIR)deb/$(NAMESHORT)/usr/include/$(NAMESHORT)/
dpkg-deb --build $(BUILDDIR)deb/$(NAMESHORT)
cp -f $(BUILDDIR)deb/$(NAMESHORT).deb .
install: $(NAME) install: $(NAME)
cp -f ./$(NAME) /usr/lib/ cp -f ./$(NAME) /usr/lib/
mkdir -p /usr/include/$(NAMESHORT)/ mkdir -p /usr/include/$(NAMESHORT)/

9
debconfig Normal file
View File

@ -0,0 +1,9 @@
Package: libmrbesen
Version: 1.0
Section: custom
Priority: optional
Architecture: all
Essential: no
Installed-Size: 8388608
Maintainer: mrbesen.de
Description: libmrbesen