forked from MrBesen/libmrbesen
added build of .deb install file
This commit is contained in:
parent
e6dcb27ecb
commit
c2135dbf8b
|
@ -7,6 +7,7 @@ build/
|
||||||
.gdb_history
|
.gdb_history
|
||||||
|
|
||||||
*.so
|
*.so
|
||||||
|
*.deb
|
||||||
*.d
|
*.d
|
||||||
*.a
|
*.a
|
||||||
|
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -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)/
|
||||||
|
|
Loading…
Reference in New Issue