diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..addb784 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +all: dpu undpu + +install: dpu undpu + cp dpu undpu /usr/local/bin/ diff --git a/Progect Goals b/Project Goals old mode 100755 new mode 100644 similarity index 100% rename from Progect Goals rename to Project Goals diff --git a/README.md b/README.md index e9b24f0..648574d 100644 --- a/README.md +++ b/README.md @@ -3,20 +3,16 @@ doubleplusunzip The Worlds First File Inflater -Installation is simple, I don't feel the need for a makefile, but if you've no idea how to compile, just run: - -cc -o dpu ./dpu.c -cc -o undpu ./undpu.c +To build: +`make` OR if you want to *install* it you can run: - -cc -o /usr/local/bin/dpu ./dpu.c -cc -o /usr/local/bin/undpu ./undpu.c +`make install` My further work will to be to properly use getopt (like not a chump), and also to create a proper useage() Right now, just use: -dpu [decompression size] filename +`dpu [decompression size] filename` The decompression size is an optional argument, and when used it will multiply the filesize by that. The default amount is 10 (making a file 10 times bigger). diff --git a/dpu.c b/dpu.c old mode 100755 new mode 100644 diff --git a/undpu.c b/undpu.c old mode 100755 new mode 100644