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

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

Merged
merged 44 commits into from Mar 28, 2015

Conversation

kdm9
Copy link
Contributor

@kdm9 kdm9 commented Feb 20, 2015

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
Copy link
Contributor Author

kdm9 commented Feb 20, 2015

  • 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
Copy link
Contributor Author

kdm9 commented Feb 20, 2015

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

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

kdm9 commented Feb 20, 2015

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

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

@mr-c
Copy link
Contributor

mr-c commented Feb 20, 2015

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
Copy link
Contributor Author

kdm9 commented Feb 23, 2015

retest this please

@kdm9
Copy link
Contributor Author

kdm9 commented Feb 23, 2015

@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
Copy link
Contributor

mr-c commented Feb 23, 2015

@kdmurray91 Not quite yet :-)

@kdm9
Copy link
Contributor Author

kdm9 commented Feb 24, 2015

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
Copy link
Contributor Author

kdm9 commented Mar 23, 2015

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
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

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

@kdm9
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

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

@kdm9
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

retest this please

@kdm9
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

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

@kdm9
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

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

@kdm9
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

image

test -f install_target/include/khmer.hh
test -d install_target/lib
test -f install_target/lib/libkhmer.a
rm -rf install_target
Copy link
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
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
Copy link
Contributor

mr-c commented Mar 27, 2015

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

@kdm9
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

  • 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
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

retest this please

@kdm9
Copy link
Contributor Author

kdm9 commented Mar 27, 2015

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
Copy link
Contributor

mr-c commented Mar 28, 2015

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.

None yet

4 participants