mpark / wg21

Framework for Writing C++ Committee Papers
Boost Software License 1.0
125 stars 45 forks source link

Non git submodule consumption #52

Closed ghost closed 3 years ago

ghost commented 4 years ago

I prefer to have a separate git repo for each of my papers. Having git submodule for every repo seems like a waste in this case. Is it possible to provide other means to use this generator?

mpark commented 4 years ago

Yes. The git submodule part actually doesn't matter. You just need to point your local Makefile to the generator's Makefile like this echo "include <path-to-framework>/Makefile" > Makefile

For example, say you have some top-level directory papers, your papers in papers/foo and papers/bar, and this generator framework in papers/wg21 as a regular git repo.

You can then do echo "include ../wg21/Makefile > Makefile each within papers/foo and papers/bar to be able to run make within each of the directories.

ghost commented 4 years ago

What about other users? Maybe provide something like make install so they install it somehow?

mpark commented 4 years ago

Ah, that's what you were getting at. I think that's a good idea! I'm not sure how I feel about installing it on the system but making it work by adding the repo to PATH or something like that would be nice 🙂

ghost commented 4 years ago

At least on Linux you can install in ~/.local so it is for single user and easily removable.