diff options
author | EliteTK <tomasz.kramkowski@gmail.com> | 2015-06-19 19:12:12 +0100 |
---|---|---|
committer | EliteTK <tomasz.kramkowski@gmail.com> | 2015-06-19 19:12:12 +0100 |
commit | da87fcf25e0c94e57f00df84679cd6fadc56ed46 (patch) | |
tree | 3c53eea9db01039990455af870a2ca65e7e5a123 /makefile | |
parent | 75d2e00662416224f4b745e0004f48f1fc1d9665 (diff) | |
parent | 7bf25fb8f0e4643a67894417a95d39e5901b1824 (diff) | |
download | c-stuff-da87fcf25e0c94e57f00df84679cd6fadc56ed46.tar.gz c-stuff-da87fcf25e0c94e57f00df84679cd6fadc56ed46.tar.xz c-stuff-da87fcf25e0c94e57f00df84679cd6fadc56ed46.zip |
Merge branch 'master' of https://github.com/EliteTK/c-stuff
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/makefile b/makefile deleted file mode 100644 index 4bffe01..0000000 --- a/makefile +++ /dev/null @@ -1,27 +0,0 @@ -CFLAGS = -Wall -Wextra -Wpedantic -O2 -std=gnu11 - -PREFIX = /usr -BINDIR = /bin -INSPATH = $(DESTDIR)$(PREFIX)$(BINDIR) - -.PHONY : all install uninstall - -all: - @echo 'Error, target not specified.' - @echo ' To compile <filename>.c `make <filename>`' - @echo ' To install <filename> `make target=<filename> install`' - @echo ' To uninstall <filename> `make target=<filename> uninstall`' - -% : %.c - $(CC) $(CFLAGS) -o $@ $^ - -$(DESTDIR)$(PREFIX)$(BINDIR)/% : % - install -Dm755 "$^" "$@" - -install : $(DESTDIR)$(PREFIX)$(BINDIR)/$(target) - -uninstall : - rm "$(DESTDIR)$(PREFIX)$(BINDIR)/$(target)" - -clean : - find . -mindepth 1 -maxdepth 1 -executable -type f ! -name "prefix_header" -delete |