diff --git a/.gitignore b/.gitignore index f184a90..faf17a0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ build/* -CHANGELOG.md~ +*~ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..03c4229 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +CC = g++ +CFLAGS = -Wall +PREFIX = /usr/local + +hi-there: src/hi-there.cpp + $(CC) $(CFLAGS) -o hi-there src/hi-there.cpp + +.PHONY: install +install: hi-there + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp $< $(DESTDIR)$(PREFIX)/bin/hi-there + +.PHONY: uninstall +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/hi-there diff --git a/README.md b/README.md index 78090a5..c77dddd 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,52 @@ README ====== -A simple readme file to toss into our project. +A simple application that does nothing useful except to practice with source code. -To compile the code, run: +You will need to have the GNU C++ compiler installed on your system. -`g++ -o build/hi-there src/hi-there.cpp` +* On Debian/Ubuntu, run: -###Note: +``` +sudo apt install build-essential +``` + +* On CentOS/Red Hat Enterprise Linux/Fedora, run: + +``` +sudo yum group install "Development Tools" +``` + +To build the program, run: + +``` +make +``` + +To install the program: + +``` +sudo make install +``` + +To run the program, execute: + +``` +hi-there +``` + +You can uninstall the program by running: + +``` +sudo make uninstall +``` + +### Note: No pull requests will be accepted for this repository, as it is meant to be used for demonstration purposes only. You are free to create a pull request to try it out, but no outside code will be merged into this project. It is highly recommended that you fork this project on GitHub so that you have full admin access to your own fork. This way you can practice with pushes and pull requests to see how they are done. Be sure to have your SSH key set up and that your public key (located in ~/.ssh/id_rsa.pub) is added to your GitHub account. + +### Added +This comment is added +be sure to have your ssh key set ....