Added installation rules
This commit is contained in:
parent
58835a9017
commit
33a2beccc9
4
Makefile
4
Makefile
@ -1,5 +1,5 @@
|
|||||||
PACKAGE = configure
|
PACKAGE = configure
|
||||||
VERSION = 0.0.1
|
VERSION = 0.0.2
|
||||||
SUBDIRS = src
|
SUBDIRS = src
|
||||||
TAR = tar cfzv
|
TAR = tar cfzv
|
||||||
|
|
||||||
@ -22,3 +22,5 @@ dist: distclean
|
|||||||
src/Makefile \
|
src/Makefile \
|
||||||
project.conf \
|
project.conf \
|
||||||
Makefile
|
Makefile
|
||||||
|
install: all
|
||||||
|
@for i in $(SUBDIRS); do (cd $$i && $(MAKE) install) || exit; done
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
TARGETS = configure
|
TARGETS = configure
|
||||||
|
PREFIX = /usr/local
|
||||||
|
DESTDIR =
|
||||||
|
BINDIR = $(PREFIX)/bin
|
||||||
CC = cc
|
CC = cc
|
||||||
CFLAGSF = -W -Wall -ansi -I /System/Include
|
CFLAGSF = -W -Wall -ansi -I /System/Include
|
||||||
CFLAGS = -g
|
CFLAGS = -g
|
||||||
LDFLAGSF= -L /System/Libraries -l System -l dl
|
LDFLAGSF= -L /System/Libraries -l System -l dl
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
MKDIR = mkdir -p
|
||||||
|
INSTALL = install
|
||||||
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
@ -21,3 +26,6 @@ clean:
|
|||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(RM) $(TARGETS)
|
$(RM) $(TARGETS)
|
||||||
|
install: all
|
||||||
|
$(MKDIR) $(DESTDIR)$(BINDIR)
|
||||||
|
$(INSTALL) -m 0755 configure $(DESTDIR)$(BINDIR)/configure
|
||||||
|
Loading…
Reference in New Issue
Block a user