diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-07-14 21:25:05 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:11 -0600 |
commit | 6ca3d3f0cd4437922280724957dc1279e007da1f (patch) | |
tree | 2103966afb6906da5e48d135f1a1f2292bad065a /Makefile.orig | |
parent | 3a511922b9e6fd25aefedb72e35a4afc1cc024a5 (diff) |
0.6.2 -- how come no one told me `make install' fails?
Diffstat (limited to 'Makefile.orig')
-rw-r--r-- | Makefile.orig | 63 |
1 files changed, 46 insertions, 17 deletions
diff --git a/Makefile.orig b/Makefile.orig index 8bc4006..a212209 100644 --- a/Makefile.orig +++ b/Makefile.orig @@ -9,9 +9,14 @@ # Originally written by Luke Shumaker <lukeshu@sbcglobal.net>. -# Make Dependencies ################################################# +# Make Programs ##################################################### RM = rm -f +CP = cp +MKDIR = mkdir -p +CHOWN = chown +CHMOD = chmod INSTALL = install +PRE = @@pre@@ # code pre-processor # Variables ######################################################## SHELL = $$SHELL$$ @@ -25,31 +30,55 @@ rvs : wrapper core .SUFFIXES : -install : wrapper core - $(INSTALL) -m 755 -T out/rvs $(prefix)/$(bindir)/rvs - $(INSTALL) -m 755 -d out/rvs-core $(libdir)/core +out/% : $(sourcedir)/source/% $(PRE) out + $(PRE) <$< > $@ wrapper : lib out/rvs -#core : l b c d p f s -core : lib out/rvs-core/commit out/rvs-core/get d f +#core: lib commit get init l b c d p f s +core : lib commit get init d f -#l: lib out/rvs-core/commit.l out/rvs-core/get.l -#b: lib out/rvs-core/commit.b out/rvs-core/get.b -#c: lib out/rvs-core/commit.c out/rvs-core/get.c -d : lib out/rvs-core/commit.d out/rvs-core/get.d -#p: lib out/rvs-core/commit.p out/rvs-core/get.p -f : lib out/rvs-core/commit.f out/rvs-core/get.f -#s: lib out/rvs-core/commit.s out/rvs-core/get.s -#D: lib out/rvs-core/commit.D out/rvs-core/get.D +commit: lib out/rvs-core/commit +get: lib out/rvs-core/get +init: lib out/rvs-core/init -lib: out/rvs-core/lib/stdio out/rvs-core/lib/rvsdb +#l: lib out/rvs-core out/rvs-core/commit.l out/rvs-core/get.l +#b: lib out/rvs-core out/rvs-core/commit.b out/rvs-core/get.b +#c: lib out/rvs-core out/rvs-core/commit.c out/rvs-core/get.c +d : lib out/rvs-core out/rvs-core/commit.d out/rvs-core/get.d +#p: lib out/rvs-core out/rvs-core/commit.p out/rvs-core/get.p +f : lib out/rvs-core out/rvs-core/commit.f out/rvs-core/get.f +#s: lib out/rvs-core out/rvs-core/commit.s out/rvs-core/get.s +#D: lib out/rvs-core out/rvs-core/commit.D out/rvs-core/get.D -out/% : $(sourcedir)/source/% tmp/var.sed - tmp/var.sed <$< > $@ +lib: out/rvs-core/lib out/rvs-core/lib/stdio out/rvs-core/lib/rvsdb + +# install/clean/uninstall + +install : + $(INSTALL) -m 755 -o root -g root -T out/rvs $(prefix)/$(bindir)/rvs + #$(INSTALL) -m 755 -o root -g root -d $(libdir) + #$(INSTALL) -m 755 -o root -g root -D out/rvs-core/{lib/*,*} $(libdir) + $(CP) -r out/rvs-core $(libdir) + $(CHOWN) -R root:root $(libdir) + $(CHMOD) -R 755 $(libdir) clean : $(RM) -r tmp $(RM) -r out $(RM) Makefile +remove : + $(RM) $(prefix)/$(bindir)/rvs + $(RM) -r $(libdir) + +# Override build instructions for directories +out: + $(MKDIR) out + +out/rvs-core: out + $(MKDIR) out/rvs-core + +out/rvs-core/lib: out/rvs-core + $(MKDIR) out/rvs-core/lib + |