Update Makefiles,
This commit is contained in:
parent
07c96e4eaa
commit
b334cf60ad
|
@ -19,7 +19,7 @@ CFLAGS += OS_CFLAGS -DPACKAGE_VERSION="\"$(VERSION)\""
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS)
|
-rm -f *.core *.o *.html tags $(TARGET) $(OBJS) base64-test
|
||||||
-rm -rf $(TARGET)-$(VERSION)
|
-rm -rf $(TARGET)-$(VERSION)
|
||||||
-rm -f $(TARGET)-$(VERSION).tgz
|
-rm -f $(TARGET)-$(VERSION).tgz
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
VERSION := 1.1.1
|
VERSION := 1.1.1
|
||||||
TARGET := libdirutils.a
|
TARGET := libdirutils.a
|
||||||
|
MANPAGE := libdirutils.3
|
||||||
OBJS := dirutils.o dirlist.o dirwalk.o
|
OBJS := dirutils.o dirlist.o dirwalk.o
|
||||||
HEADERS := kst
|
HEADERS := kst
|
||||||
LIBS :=
|
LIBS :=
|
||||||
|
@ -17,7 +18,7 @@ CFLAGS += OS_CFLAGS
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS)
|
-rm -f *.core *.o *.html tags $(TARGET) $(OBJS)
|
||||||
-rm -rf $(TARGET)-$(VERSION)
|
-rm -rf $(TARGET)-$(VERSION)
|
||||||
-rm -f $(TARGET)-$(VERSION).tgz
|
-rm -f $(TARGET)-$(VERSION).tgz
|
||||||
|
|
||||||
|
@ -25,13 +26,13 @@ $(TARGET): $(OBJS)
|
||||||
$(AR) -rcs $@ $(OBJS)
|
$(AR) -rcs $@ $(OBJS)
|
||||||
|
|
||||||
install: $(TARGET)
|
install: $(TARGET)
|
||||||
install -m 0755 $(TARGET) $(PREFIX)/lib/$(TARGET)
|
install -D -m 0755 $(TARGET) $(PREFIX)/lib/$(TARGET)
|
||||||
install -m 0755 -d $(MANDIR)/man1
|
install -m 0755 -d $(MANDIR)/man3
|
||||||
install -m 0444 $(TARGET).3 $(MANDIR)/man3/$(TARGET).3
|
install -m 0444 $(MANPAGE) $(MANDIR)/man3/$(MANPAGE)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-rm -f $(PREFIX)/lib/$(TARGET)
|
-rm -f $(PREFIX)/lib/$(TARGET)
|
||||||
-rm -f $(MANDIR)/man3/$(TARGET).3
|
-rm -f $(MANDIR)/man3/$(MANPAGE)
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
-mkdir $(TARGET)-$(VERSION)
|
-mkdir $(TARGET)-$(VERSION)
|
||||||
|
@ -43,7 +44,7 @@ distclean: clean
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
|
|
||||||
htmldoc:
|
htmldoc:
|
||||||
-mandoc -Thtml $(TARGET).1 > $(TARGET).1.html
|
-mandoc -Thtml $(MANPAGE) > $(MANPAGE).html
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
ctags *.[ch]
|
ctags *.[ch]
|
||||||
|
|
|
@ -12,7 +12,7 @@ OPSYS=$(uname -s)
|
||||||
|
|
||||||
echo "Configuring for ${OPSYS}..."
|
echo "Configuring for ${OPSYS}..."
|
||||||
if [ "x${OPSYS}" = "xLinux" ]; then
|
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
|
else
|
||||||
OS_CFLAGS=""
|
OS_CFLAGS=""
|
||||||
fi
|
fi
|
||||||
|
@ -25,7 +25,7 @@ fi
|
||||||
|
|
||||||
if [ -z "${PREFIX}" ]; then
|
if [ -z "${PREFIX}" ]; then
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${PREFIX}" = "/usr" ]; then
|
if [ "${PREFIX}" = "/usr" ]; then
|
||||||
MANDIR="$(PREFIX)/share/man"
|
MANDIR="$(PREFIX)/share/man"
|
||||||
|
|
|
@ -19,7 +19,7 @@ CFLAGS += OS_CFLAGS
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f .*.* *.core *.o *.html tags $(TARGET) $(OBJS)
|
-rm -f *.core *.o *.html tags $(TARGET) $(OBJS) iniparser-test
|
||||||
-rm -rf $(TARGET)-$(VERSION)
|
-rm -rf $(TARGET)-$(VERSION)
|
||||||
-rm -f $(TARGET)-$(VERSION).tgz
|
-rm -f $(TARGET)-$(VERSION).tgz
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue