Continued correcting Debian packaging

This commit is contained in:
Thomas Touhey 2016-05-18 20:33:30 +02:00
parent a9434eb8e6
commit 9a1b8ae5d2
3 changed files with 17 additions and 9 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
libmonochrome (1.1) stable; urgency=low
cfx-libmonochrome-dev (1.1) stable; urgency=low
* Initial release

22
debian/rules vendored
View File

@ -20,13 +20,16 @@ define \n
endef
# RULES
## Build the source into compiled programs/formatted documents in the build-tree.
## Build the source into compiled programs/formatted documents
## in the build-tree.
build: build-arch build-indep
## Build the source into arch-dependent formatted documents in the build-tree.
## Build the source into arch-dependent formatted documents
## in the build-tree.
build-arch:
## Build the source into arch-independent formatted documents in the build-tree.
## Build the source into arch-independent formatted documents
## in the build-tree.
build-indep:
make -C ..
@ -50,9 +53,11 @@ binary-arch:
binary-indep:
cd all && tar cf ../data.tar.gz *
rm -f md5sums
cd $(ARCH) && for i in $$(find * -type f); do md5sum "$$i" >> ../md5sums; done
cd $(ARCH) && for i in $$(find * -type f); \
do md5sum "$$i" >> ../md5sums; done
tar cf control.tar.gz control md5sums
ar rc ../$(PKG)_$(VERSION)_$(ARCH).deb data.tar.gz control.tar.gz debian-binary
ar rc ../$(PKG)_$(VERSION)_$(ARCH).deb data.tar.gz control.tar.gz \
debian-binary
rm data.tar.gz control.tar.gz md5sums
## Clean all compiled/generated/useless files in the build-tree.
@ -60,10 +65,13 @@ clean:
rm -rf $(ARCH)
make -C .. fclean
## Non-standard: remakes everything
## [Non-standard] remakes everything
re: clean build install binary
## Phony everything
.PHONY: build build-arch build-indep install binary binary-arch binary-indep clean re
.PHONY: build build-arch build-indep
.PHONY: install
.PHONY: binary binary-arch binary-indep
.PHONY: clean re
# END OF FILE

2
debian/rules.cfg vendored
View File

@ -1,7 +1,7 @@
#!/usr/bin/make -f
#******************************************************************************#
# _____ _ #
# rules.cfg |_ _|__ _ _| |__ ___ _ _ #
# debian/rules.cfg |_ _|__ _ _| |__ ___ _ _ #
# | Project : Caphics | |/ _ \| | | | '_ \ / _ \ | | | #
# | | (_) | |_| | | | | __/ |_| | #
# By: thomas <thomas@touhey.fr> |_|\___/ \__,_|_| |_|\___|\__, |.fr #