summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2018-03-05 10:00:50 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2018-03-05 10:00:50 +0000
commit8eceaa5232964ead04ba7baea71801b8cb93aa70 (patch)
tree47bc416070acba13b116dbeda04c3188462723f2
parent39a431f4d87c564cd6c01ab493971d14f5ebb3fc (diff)
downloadlibowfat-8eceaa5232964ead04ba7baea71801b8cb93aa70.tar.gz
libowfat-8eceaa5232964ead04ba7baea71801b8cb93aa70.zip
add rmdir
-rw-r--r--GNUmakefile2
-rw-r--r--Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 5c7cf24..e1c2eef 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -230,7 +230,7 @@ install: headers install-inc install-man install-lib
uninstall:
rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))
rm -f $(INCLUDEDIR)/libowfat/*.h
- rmdir -f $(INCLUDEDIR)/libowfat
+ test -d $(INCLUDEDIR)/libowfat && rmdir $(INCLUDEDIR)/libowfat
rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
rm -f $(LIBDIR)/libowfat.a
diff --git a/Makefile b/Makefile
index e4190e1..c73ca2d 100644
--- a/Makefile
+++ b/Makefile
@@ -819,7 +819,7 @@ install: headers install-inc install-man install-lib
uninstall:
rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))
rm -f $(INCLUDEDIR)/libowfat/*.h
- rmdir -f $(INCLUDEDIR)/libowfat
+ test -d $(INCLUDEDIR)/libowfat && rmdir $(INCLUDEDIR)/libowfat
rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
rm -f $(LIBDIR)/libowfat.a