Debuggued and continued

This commit is contained in:
Thomas Touhey 2016-05-09 02:48:42 +02:00
parent 0c6518491f
commit 41b93bc56a
7 changed files with 28 additions and 12 deletions

View File

@ -49,18 +49,18 @@ fclean: clean
re: fclean all
## Package lib
package: lib$(NAME)_$(VERSION).deb
lib$(NAME)_$(VERSION).deb: lib$(NAME).a $(INCPUB:%=$(INCDIR)/%.h)
$(INST) -m 755 -d $(TGTRT)$(TGTDIR)/lib/$(NAME)/$(VERSION)/include
$(INST) -m 644 lib$(NAME).a $(TGTRT)$(TGTDIR)/lib/$(NAME)/$(VERSION)
install: lib$(NAME).a $(INCPUB:%=$(INCDIR)/%.h)
@if ! [ -w $(TARGET) ]; then echo "make install: not enough permissions on target." && exit 1; fi
$(INST) -m 755 -d $(TARGET)$(TGTDIR)/lib/$(NAME)/$(VERSION)/include
$(INST) -m 644 lib$(NAME).a $(TARGET)$(TGTDIR)/lib/$(NAME)/$(VERSION)
$(foreach inc, $(INCPUB), \
$(INST) -m 755 -d $(TGTRT)$(TGTDIR)/lib/$(NAME)/$(VERSION)/include/$(shell dirname $(inc).h)$(\n)
$(INST) -m 644 $(INCDIR)/$(inc).h $(TGTRT)$(TGTDIR)/lib/$(NAME)/$(VERSION)/include/$(shell dirname $(inc).h)$(\n))
$(INST) -m 755 -d $(TGTRT)$(TGTMANDIR)/man3
$(INST) -m 755 -d $(TARGET)$(TGTDIR)/lib/$(NAME)/$(VERSION)/include/$(shell dirname $(inc).h)$(\n) \
$(INST) -m 644 $(INCDIR)/$(inc).h $(TARGET)$(TGTDIR)/lib/$(NAME)/$(VERSION)/include/$(shell dirname $(inc).h)$(\n))
$(INST) -m 755 -d $(TARGET)$(TGTMANDIR)/man3
$(foreach man, $(MAN3), \
$(INST) -m 644 $(MANDIR)/man3/$(man) $(TGTRT)$(TGTMANDIR)/man3$(\n))
$(INST) -m 644 $(MANDIR)/man3/$(man) $(TARGET)$(TGTMANDIR)/man3$(\n))
## Doz rulz are phunny
.PHONY: all clean fclean re package install
.PHONY: all clean fclean re install
# END OF FILE

View File

@ -19,7 +19,7 @@ SRCDIR = ./src
OBJDIR = ./obj
MANDIR = ./man
## TARGET
TGTRT = debian/root
TARGET = /
TGTDIR = /usr/cross
TGTMANDIR = /usr/share/man
@ -49,7 +49,7 @@ INCPUB = monochrome
INCINT = monochrome/internals
# MANPAGES
MAN3 = $(shell basename -a $$(find $(MANDIR)/man3 -type f) $$(find $(MANDIR)/man3 type l))
MAN3 = $(shell basename -a $(shell find $(MANDIR)/man3 -type f) $(shell find $(MANDIR)/man3 -type l))
# BIN UTILITIES
## Platform

4
configure vendored Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# We don't need ./configure, but we'll put it there so that any system used to
# Debian package making isn't lost :)
exit 0

2
debian/changelog vendored Normal file
View File

@ -0,0 +1,2 @@
libmonochrome (1.1) stable; urgency=low
* First static version.

2
debian/control vendored
View File

@ -8,5 +8,5 @@ Vcs-Browser: http://git.planet-casio.com/cakeisalie5/libmonochrome.git
Homepage: http://git.planet-casio.com/cakeisalie5/libmonochrome
Package: libmonochrome-dev
Architecture: any
Architecture: all
Description: Fast and efficient drawing static library for CASIO fx calculators.

1
debian/copyright vendored
View File

@ -20,6 +20,7 @@ License: GPL-3+
along with this program. If not, see <http://www.gnu.org/licenses/>.
Files: Makefile*
man/*
debian/*
Copyright: © 2016 Thomas "CakeIsALie5" Touhey <thomas@touhey.fr>
License: Same

9
debian/rules vendored Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/make -f
# TODO : what are the rules that should be made ?
%:
rm -rf root
mkdir -p root
# Make library and populate root
make -C ../ install TARGET="debian/root"