

Now, enter the subdirectory for lab03/part1: unix> cd lab03/part1 Push the new commit to the website unix> hg pushįirst, ensure you are in your personal repository.
#How to make a makefile for c program code
(Technically, part1/part2/part3 are directories, but Mercurial is smart enough to just add all the files in these directories with this command) unix> hg add part1 part2 part3Ĭommit the new files in your personal repository, so you can easily go back to the original starter code if necessary unix> hg commit -m "Starting Lab 3 with boilerplate code"


Unix> cp -R ~/bitbucket/2015_fall_ecpe170_boilerplate/lab03/part3 ~/bitbucket/2015_fall_ecpe170/lab03Įnter your private repository now, specifically the lab03 folder: unix> cd ~/bitbucket/2015_fall_ecpe170/lab03Īdd the new files to version control in your private repository: (In this case, there are three folders you want) unix> cp -R ~/bitbucket/2015_fall_ecpe170_boilerplate/lab03/part1 ~/bitbucket/2015_fall_ecpe170/lab03
#How to make a makefile for c program update
Pull the latest version of the repository, and update your local copy of it: unix> hg pullĬopy the files you want from the class repository to your private repository: Log onto Linux and open a command prompt.Įnter the class repository: unix> cd ~/bitbucket/2015_fall_ecpe170_boilerplate/ To begin this lab, start by obtaining the necessary boilerplate code. This lab will give you hands-on experience with the C programming language, the development toolchain (pre-processor, compiler, assembler, linker), and automating the compilation process using Makefiles.
