Skip to content

./lib Makefile rewrite, create libkhmer.{a,so} and install target#788

Merged
mr-c merged 44 commits into
dib-lab:masterfrom
kdm9:libmakefile
Mar 28, 2015
Merged

./lib Makefile rewrite, create libkhmer.{a,so} and install target#788
mr-c merged 44 commits into
dib-lab:masterfrom
kdm9:libmakefile

Conversation

@kdm9

@kdm9 kdm9 commented Feb 20, 2015

Copy link
Copy Markdown
Contributor

Hi all,

This rehashes the makefile in ./lib, adding a few targets and cleaning up. (mentioned in #776, also ping #751)

Added:

  • libkhmer.so shared object (how does this work on OSX? will it break due to shared objects being named X.dylib?)
  • libkhmer.a static archive

removed:

  • obsolete targets whose dependent source files don't exist any longer
  • use wildcards for *.o targets where possible

changes:

  • Use versioneer not python packaging for versioning. If haven't done python setup.py something, the old script spat out a sentence explaining this. Now, you don't need setup.py.
  • add compiled files to gitignores

All of this stuff probably needs testing, this started as a hack to test a few things. There's probably also some more culling that could happen in the makefile.

Cheers,
K

@kdm9

kdm9 commented Feb 20, 2015

Copy link
Copy Markdown
Contributor Author
  • Is it mergable?
  • Did it pass the tests?
  • If it introduces new functionality in scripts/ is it tested? Check for code coverage with make clean diff-cover
  • Is it well formatted? Look at make pep8, make diff_pylint_report,
    make cppcheck, and make doc output. Use make format and manual
    fixing as needed.
  • Did it change the command-line interface? Only additions are allowed without a major version increment. Changing file formats also requires a major version number increment.
  • Is it documented in the ChangeLog? http://en.wikipedia.org/wiki/Changelog#Format
  • Was a spellchecker run on the source code and documentation after changes were made?

@kdm9

kdm9 commented Feb 20, 2015

Copy link
Copy Markdown
Contributor Author

Whelp, merge conflict already 😵. Will rebase and push.

kdm9 added a commit to kdm9/khmer that referenced this pull request Feb 20, 2015
@kdm9

kdm9 commented Feb 20, 2015

Copy link
Copy Markdown
Contributor Author

Hmm, are those failures my stuff up or Jenkins'?

EDIT: they're mine. Working on it now.

@mr-c

mr-c commented Feb 20, 2015

Copy link
Copy Markdown
Contributor

Yeah, this Makefile hasn't been used in about two years.

The following defines are no longer present in the codebase and can be removed:

TRACE_STATE_CHANGES
TRACE_BUSYWAITS
TRACE_SPINLOCKS
TRACE_MEMCOPIES
TRACE_DATA

@kdm9

kdm9 commented Feb 23, 2015

Copy link
Copy Markdown
Contributor Author

retest this please

@kdm9

kdm9 commented Feb 23, 2015

Copy link
Copy Markdown
Contributor Author

@mr-c Does that mean that lib/trace_logger is also obsolete?

kdm9 added a commit to kdm9/khmer that referenced this pull request Feb 23, 2015
@mr-c

mr-c commented Feb 23, 2015

Copy link
Copy Markdown
Contributor

@kdmurray91 Not quite yet :-)

@kdm9

kdm9 commented Feb 24, 2015

Copy link
Copy Markdown
Contributor Author

retest this please

kdm9 added a commit to kdm9/khmer that referenced this pull request Mar 7, 2015
@kdm9 kdm9 mentioned this pull request Mar 12, 2015
kdm9 added a commit to kdm9/khmer that referenced this pull request Mar 23, 2015
@kdm9

kdm9 commented Mar 23, 2015

Copy link
Copy Markdown
Contributor Author

Can I delete the following files:

  • test-CacheManager.cc: Functionality has been removed
  • test-StreamReader.cc: Functionality has been removed

Additionally, test-Colours.cc doesn't compile.

#18

kdm9 added 10 commits March 23, 2015 16:08
- replace most .o targets with wildcard targets
- add libkhmer.so and libkhmer.a targets
- Minor tidying
- Allows the version to be obtained without khmer being installed.
They were being called libkhmer.a.a and .so.so due to a copy-paste error
And add more comments
@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

Jenkins, don't make us call Camille, retest this please!!

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

Ah, I think jenkins is having trouble pulling down changes, as github's under a DDOS attack

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

retest this please

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

Well, closer. git fetch only failed on the OS X node that time. retest this please

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

Ah, that's an actual failure. Hacky configure is hacky.

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

image

Comment thread Makefile Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should your tst.cc be included here to catch issues similar to the Seqan header problem in the future?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, done

@mr-c

mr-c commented Mar 27, 2015

Copy link
Copy Markdown
Contributor

This generally looks good to me. Slap a completed checklist on this and I'll merge.

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author
  • Is it mergeable?
  • Did it pass the tests?
  • If it introduces new functionality in scripts/ is it tested?
    Check for code coverage with make clean diff-cover
  • Is it well formatted? Look at make pep8, make diff_pylint_report,
    make cppcheck, and make doc output. Use make format and manual
    fixing as needed.
  • Did it change the command-line interface? Only additions are allowed
    without a major version increment. Changing file formats also requires a
    major version number increment.
  • Is it documented in the ChangeLog?
    http://en.wikipedia.org/wiki/Changelog#Format
  • Was a spellchecker run on the source code and documentation after
    changes were made?

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

retest this please

@kdm9

kdm9 commented Mar 27, 2015

Copy link
Copy Markdown
Contributor Author

All good to go I think @mr-c

mr-c added a commit that referenced this pull request Mar 28, 2015
./lib Makefile rewrite, create libkhmer.{a,so} and install target
@mr-c mr-c merged commit 2f6e71a into dib-lab:master Mar 28, 2015
@mr-c

mr-c commented Mar 28, 2015

Copy link
Copy Markdown
Contributor

Thanks!

@kdm9 kdm9 deleted the libmakefile branch March 28, 2015 11:55
@kdm9 kdm9 mentioned this pull request Mar 30, 2015
21 tasks
@mr-c mr-c mentioned this pull request Apr 1, 2015
@kdm9 kdm9 mentioned this pull request Apr 1, 2015
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.

4 participants