Merge pull request #58 from pilona/master - sam - An updated version of the sam… | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit fa53aa4932f59b993ea618d5f39c33ff4165d85a | |
parent fdf91e96ba26569076d6675880df757e0c1d47d5 | |
Author: Rob King <[email protected]> | |
Date: Mon, 19 Jun 2017 21:51:40 -0500 | |
Merge pull request #58 from pilona/master | |
Add uninstall make targets. | |
Diffstat: | |
Makefile | 8 ++++++++ | |
doc/Makefile | 9 +++++++++ | |
libXg/Makefile | 1 + | |
libframe/Makefile | 2 ++ | |
sam/Makefile | 4 ++++ | |
samterm/Makefile | 3 +++ | |
6 files changed, 27 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -34,6 +34,14 @@ install: | |
cd samterm; $(MAKE) install | |
cd doc; $(MAKE) install | |
+uninstall: | |
+ @xdg-desktop-menu uninstall --mode $(MODE) deadpixi-sam.desktop || ech… | |
+ cd libXg; $(MAKE) uninstall | |
+ cd libframe; $(MAKE) uninstall | |
+ cd sam; $(MAKE) uninstall | |
+ cd samterm; $(MAKE) uninstall | |
+ cd doc; $(MAKE) uninstall | |
+ | |
clean: | |
cd libXg; $(MAKE) clean | |
cd libframe; $(MAKE) clean | |
diff --git a/doc/Makefile b/doc/Makefile | |
@@ -14,3 +14,12 @@ install: sam.1 | |
mkdir -p "$(MANDIR)/man5" | |
cp keyboard.5 "$(MANDIR)/man5" | |
cp samrc.5 "$(MANDIR)/man5" | |
+ | |
+uninstall: | |
+ rm -f "$(MANDIR)/man1/sam.1" | |
+ rm -f "$(MANDIR)/man1/B.1" | |
+ rm -f "$(MANDIR)/man1/samterm.1" | |
+ rm -f "$(MANDIR)/man1/rsam.1" | |
+ rm -f "$(MANDIR)/man1/sam.save.1" | |
+ rm -f "$(MANDIR)/man5/keyboard.5" | |
+ rm -f "$(MANDIR)/man5/samrc.5" | |
diff --git a/libXg/Makefile b/libXg/Makefile | |
@@ -31,6 +31,7 @@ OBJS= arith.o balloc.o bitblt.o border.o bscreenre… | |
wrbitmap.o xtbinit.o | |
all install: $(LIB) | |
+uninstall: | |
compile: $(LIB) | |
test: $(LIB) test.o | |
$(CC) -o $@ $? $(LIB) $(XLIBS) -lm $(LDFLAGS) | |
diff --git a/libframe/Makefile b/libframe/Makefile | |
@@ -37,4 +37,6 @@ nuke: clean | |
install: $(LIB) | |
+uninstall: | |
+ | |
$(OBJ): ../include/u.h ../include/frame.h | |
diff --git a/sam/Makefile b/sam/Makefile | |
@@ -44,6 +44,10 @@ install: sam | |
cp sam $(SAMDIR)/$(RSAMNAME) | |
ln -f $(SAMDIR)/$(RSAMNAME) $(SAMDIR)/B | |
+uninstall: | |
+ rm -f $(SAMDIR)/$(RSAMNAME) | |
+ rm -f $(SAMDIR)/B | |
+ | |
$(OBJ): sam.h ../include/u.h errors.h mesg.h | |
cmd.o: parse.h | |
diff --git a/samterm/Makefile b/samterm/Makefile | |
@@ -35,4 +35,7 @@ clean: | |
install: samterm | |
cp samterm $(SAMTERM) | |
+uninstall: | |
+ rm -f $(SAMTERM) | |
+ | |
$(OBJ): samterm.h flayer.h ../include/frame.h ../include/libg.h ../incl… |