Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rationalization: Makefile #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jgmbenoit
Copy link

This patch introduce a Makefile that is meant to replace the compile_all.sh script, and do more.
I import it as is from the Debian material, module refreshments.

By default, it does nothing (yet).
It contains the default targets: build, install, uninstall, clean, distclean.
It also contain the maintainer target maintainer-clean.
The other target are more specific to the project itself: jarbuild, jarclean.
The target default-info is meant to echo some key data.

Otherwise, the composition itself (TeX stuff) is highly inspire by the script: if I remember well, I added some option here and there for compatibility reasons.

Summary:
to build: make build
to clean: make clean
to build the jar: jarbuild
to clean the jar: jarclean

and so forth.

Note that it assume some data that I may bring later.

The optional MaKe data file maint.mk is meant to contained local setup, and so to be ignored by GIT.
Sample:
==8><--------------------------------------------------
include $(HOME)/etc/maint.mk
JARDIR = $(HOME)/Surfer/Galleries/pool/jar/
----------------------------------><8============

[[on my box, I play with make version 4 (Jessie and later); it is written with GNU make in mind]]

@jgmbenoit
Copy link
Author

IMPORTANT NOTE: this request interfere with
#30

@jgmbenoit
Copy link
Author

The GNUmake is menat to be ignored by GIT: add in

.git/info/exclude

GNUmakefile

This version contains itself and a simple local gitmaint.mk that is meant to contain local material
(and to be personalized wrt you habits and taste)
THIS VERSION is NEUTRALIZED: it may not modify anything.

Sample usage:

stamp the changelog file:

make gitmaintainer-release-changelog

tag

make gitmaintainer-release-tag

make a release

gitmaintainer-release

[[to get the list of target, consider BASH completion:
make gitmaintainer- + TAB

@jgmbenoit
Copy link
Author

To build in parallel:
make build -j4

@jgmbenoit
Copy link
Author

PLease let me know if some clarification is needed.

@porst17
Copy link
Member

porst17 commented Mar 21, 2016

I have to look into it in detail. I this urgent? I would like to finish something different beforehand.

@jgmbenoit
Copy link
Author

It is not urgent. But it shows what it can be easily done with make, and it may help to reorganize the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants