summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-02-13 12:04:25 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:03 +0100
commit47ef99525ea8442d61e136ab3f809025fc57a880 (patch)
tree69327c1abe7750dcbaa9dec2f82a753c7128d8b3
parentf63b6ec11153ee4105110962826d4a503161b12a (diff)
remove version.c
tidy up history install
-rw-r--r--Makefile.am20
1 files changed, 8 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am
index 6fb443a..14cc0fe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,7 @@ endif
bin_PROGRAMS = rc
noinst_PROGRAMS = $(HISTBIN)
-rc_SOURCES = @ADDON@ builtins.c except.c exec.c execve.c fn.c footobar.c getopt.c glob.c glom.c hash.c heredoc.c input.c lex.c list.c main.c match.c nalloc.c open.c print.c redir.c sigmsgs.c signal.c status.c tree.c utils.c var.c version.c wait.c walk.c which.c y.tab.c
+rc_SOURCES = @ADDON@ builtins.c except.c exec.c execve.c fn.c footobar.c getopt.c glob.c glom.c hash.c heredoc.c input.c lex.c list.c main.c match.c nalloc.c open.c print.c redir.c sigmsgs.c signal.c status.c tree.c utils.c var.c wait.c walk.c which.c y.tab.c
history_SOURCES = history.c
@@ -33,14 +33,10 @@ trip: rc
./rc -p < $(srcdir)/trip.rc
install-exec-hook:
- case "x@HISTORY@" in \
- x) \
- ;; \
- *) \
- $(LN) $(HISTORY) - ;\
- $(INSTALL_PROGRAM) - $(bindir) ;\
- $(LN) $(bindir)/- $(bindir)/-- ;\
- $(LN) $(bindir)/- $(bindir)/-p ;\
- $(LN) $(bindir)/- $(bindir)/--p ;\
- ;; \
- esac
+if HISTORY
+ $(LN) $(HISTORY) - ;\
+ $(INSTALL_PROGRAM) - $(bindir) ;\
+ rm -f $(bindir)/--; $(LN) $(bindir)/- $(bindir)/-- ;\
+ rm -f $(bindir)/-p; $(LN) $(bindir)/- $(bindir)/-p ;\
+ rm -f $(bindir)/--p; $(LN) $(bindir)/- $(bindir)/--p
+endif