fboender / multi-git-status

Show uncommitted, untracked and unpushed changes for multiple Git repos
MIT License
470 stars 73 forks source link

Add Makefile #41

Closed SuperSandro2000 closed 4 years ago

lyknode commented 4 years ago

Hi @SuperSandro2000,

I was going to take care of that but you did it first ^^. Allow me to comment on some suggestions.

The next two suggestions are just my preference so fell free to ignore those totally:

lyknode commented 4 years ago

Also, you didn't remove build.sla and install.sh.

SuperSandro2000 commented 4 years ago

Could you not add --no-print-directory, this is GNU make specific and users and tools might want/expect path to be printed. You are not using any syntax specific to bash, so you could replace SHELL by /bin/sh to allow building on a wider set of systems.

I just copied that from my default Makefile.

Changed all the things you requested.

lyknode commented 4 years ago

Thanks for the quick fix!

You are missing a .PHONY tag for the install target and then it should be good.

SuperSandro2000 commented 4 years ago

@lyknode Added that

lyknode commented 4 years ago

Ah, we forgot the clean rule. Could you make it remove the generated manpage?

SuperSandro2000 commented 4 years ago

The manpage is currently tracked in git and removing it would cause changes to the cwd.

When the manpage is converted to troff we don't need the generation or clean.

lyknode commented 4 years ago

As per last comment on #38, the manpage would be removed and the markdown kept. But you are right, the clean target doesn't need to be added right now. It can be done afterward as the file is removed from the repo.