Skip to content

generates & configures a project folder inside working directory

License

Notifications You must be signed in to change notification settings

voraciousKobald/pmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pmake

Who its for:

THIS UTILITY IS MAINLY MEANT TO BE USED IN COMBINATION WITH GNU EMACS.

THIS UTILITY IS MAINLY MEANT FOR LINUX USERS, HOWEVER IT IS POSSIBLE TO GET IT TO WORK USING MSYS2 ON WINDOWS.

THIS UTILITY IS MAINLY MEANT FOR GENERATING C PROJECT FOLDERS, BUT THE SOURCE CODE SHOULD BE EASY TO CONFIGURE FOR YOUR LANGUAGE OF CHOICE.

THIS UTILITY HAS BIAS TOWARDS GCC, HOWEVER IT SHOULD BE EASY TO ALTER THE SOURCE CODE TO PREPARE THE MAKEFILE FOR THE COMPILER OF YOUR CHOICE.

Soft dependencies:

  • GNU C COMPILER (You can swap it for any C compiler in the source code by changing the CC variable in the printf function in S1. Alternatively, you could go for a different language entirely since gtags supports several other languages.)

  • GNU EMACS (I labeled the block of code in the source code that you can delete if you prefer to hack this script to have a setup for your own editor.)

EMACS packages needed/reccomended:

Dependencies:

USAGE EXAMPLE

  • So, I wanted to show my self setting up an SDL project as an example. So I downloaded the source here for SDL2 SDL2

  • In order to get all the includes and libs in one directory to make the process easier, I created a new directory in my home folder named il and a subdirectory named SDL2, and I ran ./configure --prefix=$HOME/il/SDL2 in order to gaslight the makefile into thinking thats where it should throw all the files in after running make install.

  • After running all those commands, i navigated to $HOME/il/SDL2 and ran PWD to get the absolute path of this place, and then i used this to feed into pmake. It asks me what the include path will be, so i give it /home/sudotouchgrass/il/SDL2/include and when asked where the libs are i give it /home/sudotouchgrass/il/SDL2/lib and then the script does its work.

About

generates & configures a project folder inside working directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages