diff --git a/libbase64/Makefile.in b/libbase64/Makefile.in index 29c0125..1d011de 100644 --- a/libbase64/Makefile.in +++ b/libbase64/Makefile.in @@ -19,7 +19,7 @@ CFLAGS += OS_CFLAGS -DPACKAGE_VERSION="\"$(VERSION)\"" all: $(TARGET) clean: - -rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS) + -rm -f *.core *.o *.html tags $(TARGET) $(OBJS) base64-test -rm -rf $(TARGET)-$(VERSION) -rm -f $(TARGET)-$(VERSION).tgz diff --git a/libdirutils/Makefile.in b/libdirutils/Makefile.in index 530b8bc..fe523f5 100644 --- a/libdirutils/Makefile.in +++ b/libdirutils/Makefile.in @@ -1,5 +1,6 @@ VERSION := 1.1.1 TARGET := libdirutils.a +MANPAGE := libdirutils.3 OBJS := dirutils.o dirlist.o dirwalk.o HEADERS := kst LIBS := @@ -17,7 +18,7 @@ CFLAGS += OS_CFLAGS all: $(TARGET) clean: - -rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS) + -rm -f *.core *.o *.html tags $(TARGET) $(OBJS) -rm -rf $(TARGET)-$(VERSION) -rm -f $(TARGET)-$(VERSION).tgz @@ -25,13 +26,13 @@ $(TARGET): $(OBJS) $(AR) -rcs $@ $(OBJS) install: $(TARGET) - install -m 0755 $(TARGET) $(PREFIX)/lib/$(TARGET) - install -m 0755 -d $(MANDIR)/man1 - install -m 0444 $(TARGET).3 $(MANDIR)/man3/$(TARGET).3 + install -D -m 0755 $(TARGET) $(PREFIX)/lib/$(TARGET) + install -m 0755 -d $(MANDIR)/man3 + install -m 0444 $(MANPAGE) $(MANDIR)/man3/$(MANPAGE) uninstall: -rm -f $(PREFIX)/lib/$(TARGET) - -rm -f $(MANDIR)/man3/$(TARGET).3 + -rm -f $(MANDIR)/man3/$(MANPAGE) dist: clean -mkdir $(TARGET)-$(VERSION) @@ -43,7 +44,7 @@ distclean: clean -rm -f Makefile htmldoc: - -mandoc -Thtml $(TARGET).1 > $(TARGET).1.html + -mandoc -Thtml $(MANPAGE) > $(MANPAGE).html tags: ctags *.[ch] diff --git a/libdirutils/config.sh b/libdirutils/config.sh index ddafb4c..0174c66 100755 --- a/libdirutils/config.sh +++ b/libdirutils/config.sh @@ -12,7 +12,7 @@ OPSYS=$(uname -s) echo "Configuring for ${OPSYS}..." if [ "x${OPSYS}" = "xLinux" ]; then - OS_CFLAGS="-D_BSD_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE" + OS_CFLAGS="-D_DEFAULT_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE" else OS_CFLAGS="" fi @@ -25,7 +25,7 @@ fi if [ -z "${PREFIX}" ]; then PREFIX="/usr/local" -fi +fi if [ "${PREFIX}" = "/usr" ]; then MANDIR="$(PREFIX)/share/man" diff --git a/libiniparser/Makefile.in b/libiniparser/Makefile.in index 1e719d0..64776a3 100644 --- a/libiniparser/Makefile.in +++ b/libiniparser/Makefile.in @@ -19,7 +19,7 @@ CFLAGS += OS_CFLAGS all: $(TARGET) clean: - -rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS) + -rm -f *.core *.o *.html tags $(TARGET) $(OBJS) iniparser-test -rm -rf $(TARGET)-$(VERSION) -rm -f $(TARGET)-$(VERSION).tgz