diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-02-10 19:46:17 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-02-10 19:46:17 +0000 |
commit | 7613c7f3888ef640426e3ce2a636ab5774a54c6c (patch) | |
tree | c7f83a4b93562a9d74f92a4356312a9a47eb1f1e /GNUmakefile | |
parent | 61b0b2c76d2dedbc028a548e39299532a20f1bd2 (diff) |
GNUmakefile fixes, from tobiasu.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index ba1755db..82254a7a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,4 @@ -# $Id: GNUmakefile,v 1.10 2007-12-13 18:59:42 nicm Exp $ +# $Id: GNUmakefile,v 1.11 2008-02-10 19:46:17 nicm Exp $ .PHONY: clean @@ -32,6 +32,7 @@ CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'" ifdef DEBUG CFLAGS+= -g -ggdb -DDEBUG LDFLAGS+= -rdynamic +LIBS+= -ldl endif CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations @@ -42,6 +43,7 @@ LDFLAGS+= LIBS+= -lncurses PREFIX?= /usr/local +INSTALLDIR= install -d INSTALLBIN= install -g bin -o root -m 555 INSTALLMAN= install -g bin -o root -m 444 @@ -78,7 +80,9 @@ depend: $(SRCS) $(CC) $(CFLAGS) $(INCDIRS) -MM $(SRCS) > .depend install: + $(INSTALLDIR) $(DESTDIR)$(PREFIX)/bin $(INSTALLBIN) $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG) + $(INSTALLDIR) $(DESTDIR)$(PREFIX)/man/man1 $(INSTALLMAN) $(PROG).1 $(DESTDIR)$(PREFIX)/man/man1/ clean: |