summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-02 21:21:10 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-02 21:23:19 +0100
commit20bcc774686078cf7f5c58ef058ca2458b01086d (patch)
treed1f9e6a90285db10bf28a2abecc1ef610ef64838 /Makefile
parent3c5e9f4f828c76de5824cf7ac440aa0cda45ccaf (diff)
Rewrite in C, release v2.0 (from branch 'v2')2.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 16 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index 090bf11..551c15c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,31 @@
-prefix ?= /usr/local
+CFLAGS = -Wall -Wextra -pedantic -O2
+prefix = /usr/local
-manuals: build/envstore.1 build/envify.1
+all: bin/envstore
-build/%.1: man/1/%.pod
- mkdir -p build
- pod2man $< > $@
+bin/%: src/%.c
+ $(CC) $(CFLAGS) -o $@ $<
-test: test/main
- zsh $< --extended
-
-install: manuals
+install: bin/envstore
mkdir -p $(prefix)/bin $(prefix)/share/man/man1
cp bin/envstore $(prefix)/bin/envstore
cp bin/envify $(prefix)/bin/envify
- cp build/envstore.1 $(prefix)/share/man/man1/envstore.1
- cp build/envify.1 $(prefix)/share/man/man1/envify.1
+ cp man/1/envify $(prefix)/share/man/man1/envify.1
+ cp man/1/envstore $(prefix)/share/man/man1/envstore.1
chmod 755 $(prefix)/bin/envstore
chmod 755 $(prefix)/bin/envify
- chmod 644 $(prefix)/share/man/man1/envstore.1
chmod 644 $(prefix)/share/man/man1/envify.1
+ chmod 644 $(prefix)/share/man/man1/envstore.1
uninstall:
- rm -f $(prefix)/bin/envstore
- rm -f $(prefix)/bin/envify
- rm -f $(prefix)/share/man/man1/envstore.1
+ rm -f $(prefix)/bin/envstore $(prefix)/bin/envify
rm -f $(prefix)/share/man/man1/envify.1
+ rm -f $(prefix)/share/man/man1/envstore.1
+
+test:
+ zsh test/main --extended
clean:
- rm -rf build
+ rm -f bin/envstore
-.PHONY: install manuals test uninstall clean
+.PHONY: all install uninstall test clean