Comments (5)
Note that git clean -x
will remove untrackted files too (git clean -X
will remove only the untracked files).
from unimath.
On 12/07/2014 12:38 PM, Jason Gross wrote:
Note that
git clean -x
will remove untrackted files too (git clean -X
will remove only the untracked files).
Thanks for the hint.
I would still prefer a more fine-grained solution via make, in order to
avoid deleting untracked Coq files by accident.
from unimath.
Once one of the makefiles that make reads has a syntax error in it, make will always refuse to
do anything. So the only way to get make to do something is to prevent it from including the
erroneous file. That can be done by adding a test for the setting of a make variable. For example,
if you had to type
make CLEAN=yes
instead of
make clean
would that be too counterintuitive?
Another point about git clean is that git clean -Xdfq
is that the -X tells git to
remove just the files ignored by being mentioned in .gitignore
, so it's safer than
git clean -xdfq
, which might remove a file you want to keep. For me, that's a perfect
way to get cleaning done.
from unimath.
On 12/08/2014 03:27 PM, Daniel R. Grayson wrote:
Once one of the makefiles that make reads has a syntax error in it, make will always refuse to
do anything. So the only way to get make to do something is to prevent it from including the
erroneous file. That can be done by adding a test for the setting of a make variable. For example,
if you had to type
make CLEAN=yes
instead of
make clean
would that be too counterintuitive?Another point about git clean is that "git clean -Xdfq" is that the -X tells git to
remove just the files ignored by being mentioned in .gitignore, so it's safer than
"git clean -xdfq", which might remove a file you want to keep. For me, that's a perfect
way to get cleaning done.
Ok. Instead of implementing a hack in the Makefile it is probably better
to simply add that git clean command to the README. I will do that right
now.
from unimath.
Not touching the Makefile, but adding a remark in README instead.
from unimath.
Related Issues (20)
- Code should be reactivated [was: Compilation seems to hang at Qed.] HOT 9
- Using PathOver in definitions and constructions of displayed things? HOT 3
- Error `/bin/sh: Argument list too long` when doing `$ make install` HOT 13
- there are competing implementations of a full subcategory HOT 9
- how to keep track of which .v files of UniMath are being compiled?
- which version of Coq are we allowed to use? HOT 2
- Please pick the version you prefer for Coq 8.18 in Coq Platform 2023.10 HOT 4
- A warning HOT 4
- Defining objects, morphisms and categories separately or together HOT 3
- Error "Argument list too long" when running sanity checks HOT 3
- Who are contributors anonymous-1234567 and anonymous-13243557? HOT 3
- compilation problems in CI with Coq 8.20 (dev) HOT 2
- Please help debug ltac induced error HOT 2
- Updating names with "wrong capitalization" HOT 5
- Reversible coercions HOT 1
- Compile times for model categories HOT 3
- Coqdoc generation documentation and reduction HOT 1
- Please pick the version you prefer for Coq 8.19 in Coq Platform 2024.01 HOT 10
- Remove undesired axiom HOT 2
- adapt header infos and section titles in package SubstitutionSystems after a reorganization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unimath.